/* ==========================================================================
   WAVVY HOW PRICING WORKS - ULTRA-COMPACT & MOBILE-FIRST STYLESHEET
   High-density, responsive, zero-bloat modern SaaS design
   ========================================================================== */

:root {
    --wa-green: #25D366;
    --wa-green-dark: #128C7E;
    --wa-emerald: #10b981;
    --wa-emerald-dark: #059669;
    --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
    --card-shadow-hover: 0 6px 16px -2px rgba(16, 185, 129, 0.12), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.how-pricing-body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: #0f172a;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HERO SECTION (ULTRA-COMPACT)
   ========================================================================== */
.how-hero-wrap {
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, rgba(248, 250, 252, 0.7) 65%, #f8fafc 100%);
    padding: 4.25rem 0.75rem 1rem;
    text-align: center;
    overflow: hidden;
}

@media (min-width: 640px) {
    .how-hero-wrap {
        padding: 5rem 1.25rem 1.5rem;
    }
}

.how-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    box-shadow: 0 1px 6px rgba(16, 185, 129, 0.08);
    margin-bottom: 0.5rem;
}

.how-hero-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin: 0 auto 0.4rem;
    max-width: 640px;
}

@media (min-width: 640px) {
    .how-hero-title {
        font-size: 2rem;
    }
}

.how-hero-title .gradient-text {
    background: linear-gradient(135deg, #059669 0%, #0d9488 50%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.how-hero-subtext {
    font-size: 0.775rem;
    line-height: 1.45;
    color: #475569;
    max-width: 520px;
    margin: 0 auto 0.75rem;
}

@media (min-width: 640px) {
    .how-hero-subtext {
        font-size: 0.875rem;
    }
}

/* Micro trust chips */
.how-hero-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.4rem;
    max-width: 600px;
    margin: 0 auto;
}

.how-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.675rem;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.how-hero-chip i {
    color: #10b981;
    font-size: 0.675rem;
    flex-shrink: 0;
}

/* ==========================================================================
   MAIN COMPACT CONTAINER
   ========================================================================== */
.how-main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0.75rem 2.5rem;
}

@media (min-width: 640px) {
    .how-main-container {
        padding: 1.5rem 1.25rem 3.5rem;
    }
}

.how-section {
    margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
    .how-section {
        margin-bottom: 2.5rem;
    }
}

.how-section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.how-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.55rem;
    border-radius: 9999px;
    margin-bottom: 0.35rem;
}

.how-section-tag.tag-metered {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.how-section-tag.tag-free {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.how-section-tag.tag-rules {
    background: #f5f3ff;
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.how-section-tag.tag-scenarios {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.how-section-tag.tag-faq {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.how-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .how-section-title {
        font-size: 1.5rem;
    }
}

.how-section-desc {
    font-size: 0.775rem;
    color: #64748b;
    line-height: 1.45;
}

@media (min-width: 640px) {
    .how-section-desc {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   SECTION 1: WHAT WE COUNT (COMPACT BENTO GRID)
   ========================================================================== */
/* Live Plan Quotas Bar */
.live-plans-quota-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.85rem;
    box-shadow: var(--card-shadow);
}

.live-plans-quota-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.live-pulse-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.live-plans-quota-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

@media (min-width: 640px) {
    .live-plans-quota-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
}

.live-quota-card {
    border-radius: 0.6rem;
    padding: 0.45rem 0.55rem;
    border-width: 1px;
    border-style: solid;
    transition: all 0.2s ease;
}

.live-quota-card:hover {
    transform: translateY(-1px);
}

.live-quota-plan-name {
    font-size: 0.675rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #0f172a;
}

.live-quota-price {
    font-size: 0.625rem;
    font-weight: 700;
    color: #059669;
}

.live-quota-stat {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.15rem;
}

.live-quota-num {
    font-size: 0.875rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.live-quota-substats {
    font-size: 0.6rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    line-height: 1.2;
}

/* Plan Limits Strip inside Bento Cards */
.metered-card-limits {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 0.45rem;
    padding: 0.35rem 0.45rem;
    margin: 0.4rem 0;
}

.limits-header {
    font-size: 0.5875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.limits-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.limit-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    font-size: 0.625rem;
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.limit-chip strong {
    font-weight: 800;
    color: #0f172a;
}

.limit-chip.starter strong {
    color: #2563eb;
}

.limit-chip.pro strong {
    color: #7c3aed;
}

.limit-chip.biz strong {
    color: #d97706;
}

.metered-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

@media (min-width: 640px) {
    .metered-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .metered-bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.85rem;
    }
}

.metered-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.75rem 0.85rem;
    box-shadow: var(--card-shadow);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metered-card:hover {
    border-color: #10b981;
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
}

.metered-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.metered-card-header-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.metered-icon-wrap {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.metered-card-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0;
}

.metered-formula-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.metered-card-text {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.45;
    margin-bottom: 0.5rem;
}

.metered-card-example {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 0.5rem;
    padding: 0.35rem 0.55rem;
    font-size: 0.6875rem;
    color: #854d0e;
    line-height: 1.35;
    margin-top: auto;
}

.metered-card-example i {
    color: #eab308;
    font-size: 0.725rem;
    flex-shrink: 0;
}

/* ==========================================================================
   SECTION 2: WHAT WE DON'T COUNT (100% FREE & UNLIMITED)
   ========================================================================== */
.unlimited-feature-card {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.7) 0%, #ffffff 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.85rem;
    padding: 0.75rem 0.85rem;
    box-shadow: 0 2px 8px -2px rgba(16, 185, 129, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    transition: all 0.2s ease;
}

.unlimited-feature-card:hover {
    border-color: #059669;
    box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.16);
    transform: translateY(-1px);
}

.unlimited-icon-wrap {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.55rem;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.unlimited-card-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #064e3b;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.unlimited-free-badge {
    background: #059669;
    color: #ffffff;
    font-size: 0.575rem;
    font-weight: 800;
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.unlimited-card-desc {
    font-size: 0.75rem;
    color: #334155;
    line-height: 1.45;
}

/* Courier Logos / Partner Badges */
.courier-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

.courier-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 9999px;
    padding: 0.1rem 0.35rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: #065f46;
}

/* Mobile-Friendly Comparison Matrix Cards */
.matrix-mini-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

@media (min-width: 640px) {
    .matrix-mini-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.matrix-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
}

.matrix-mini-row-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: #0f172a;
}

.matrix-mini-row-right {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 800;
}

/* ==========================================================================
   SECTION 3: HOW DEDUCTIONS WORK (COMPACT 4-STEP GRID)
   ========================================================================== */
.deduction-timeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .deduction-timeline-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}

.deduction-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.75rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.deduction-step-card:hover {
    border-color: #8b5cf6;
    transform: translateY(-1px);
}

.deduction-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.deduction-step-num {
    font-size: 0.95rem;
    font-weight: 900;
    color: #8b5cf6;
    letter-spacing: -0.02em;
}

.deduction-step-icon {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.45rem;
    background: #f5f3ff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.725rem;
}

.deduction-step-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.2rem;
    line-height: 1.25;
}

.deduction-step-desc {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.4;
}

/* ==========================================================================
   SECTION 4: FAQ ACCORDION (COMPACT)
   ========================================================================== */
.how-faq-stack {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-width: 760px;
    margin: 0 auto;
}

.how-faq-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.how-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
    gap: 0.5rem;
}

.how-faq-summary::-webkit-details-marker {
    display: none;
}

.how-faq-summary-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.how-faq-icon {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.725rem;
    flex-shrink: 0;
}

.how-faq-question {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .how-faq-question {
        font-size: 0.875rem;
    }
}

.how-faq-chevron {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.how-faq-card details[open] .how-faq-chevron {
    transform: rotate(180deg);
    background: #10b981;
    color: #ffffff;
}

.how-faq-body {
    padding: 0 0.85rem 0.65rem 3rem;
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .how-faq-body {
        padding: 0 0.85rem 0.65rem 0.85rem;
    }
}

/* Compact WhatsApp Support Card */
.how-live-support {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.75rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    max-width: 760px;
    margin: 1rem auto 0;
    box-shadow: var(--card-shadow);
}

@media (min-width: 580px) {
    .how-live-support {
        flex-direction: row;
    }
}

.how-support-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.how-support-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.how-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: #25D366;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.45rem 0.95rem;
    border-radius: 0.6rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
}

@media (min-width: 580px) {
    .how-support-btn {
        width: auto;
    }
}

.how-support-btn:hover {
    background: #128C7E;
}

/* ==========================================================================
   SECTION 6: BOTTOM CTA BANNER (COMPACT)
   ========================================================================== */
.how-bottom-cta {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #065f46 0%, #064e3b 60%, #022c22 100%);
    border-radius: 1.15rem;
    padding: 1.5rem 1rem;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 24px -4px rgba(6, 78, 59, 0.3);
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .how-bottom-cta {
        padding: 2rem 1.5rem;
        border-radius: 1.5rem;
    }
}

.how-cta-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

@media (min-width: 640px) {
    .how-cta-title {
        font-size: 1.75rem;
    }
}

.how-cta-subtext {
    font-size: 0.75rem;
    color: #a7f3d0;
    max-width: 480px;
    margin: 0 auto 1rem;
    line-height: 1.45;
}

.how-cta-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    max-width: 360px;
    margin: 0 auto;
}

@media (min-width: 540px) {
    .how-cta-btn-group {
        flex-direction: row;
        max-width: none;
    }
}

.how-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: #ffffff;
    color: #064e3b;
    font-size: 0.775rem;
    font-weight: 800;
    padding: 0.55rem 1.15rem;
    border-radius: 0.65rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    width: 100%;
}

@media (min-width: 540px) {
    .how-cta-btn-primary {
        width: auto;
    }
}

.how-cta-btn-primary:hover {
    background: #f1f5f9;
}

.how-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(6, 78, 59, 0.7);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #ffffff;
    font-size: 0.775rem;
    font-weight: 700;
    padding: 0.55rem 1.15rem;
    border-radius: 0.65rem;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}

@media (min-width: 540px) {
    .how-cta-btn-secondary {
        width: auto;
    }
}

.how-cta-btn-secondary:hover {
    background: rgba(6, 78, 59, 0.9);
    border-color: rgba(52, 211, 153, 0.8);
}
