/**
 * Haneko CodeShield - Dedicated Pricing & Licensing Matrix Stylesheet (public-pricing.css)
 * Used exclusively by pricing.php
 * 100% Mobile Responsive (320px to 4K) & Zero Inline CSS Policy
 * Clean, Compact, Anti-Wrapping SaaS Typography System
 */

/* ==========================================================================
   1. Pricing Hero Header
   ========================================================================== */
.clay-pricing-hero {
    text-align: center;
    padding: clamp(18px, 3.5vw, 36px) clamp(14px, 2.5vw, 20px);
    margin-bottom: clamp(18px, 3vw, 28px);
}

.clay-pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--clay-lavender);
    color: var(--clay-lavender-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(140, 103, 216, 0.18);
    margin-bottom: 12px;
}

.clay-pricing-hero-title {
    font-size: clamp(24px, 4.5vw, 38px);
    font-weight: 900;
    color: var(--clay-brown-text);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.clay-pricing-hero-sub {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--clay-sub-text);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 500;
}

/* ==========================================================================
   2. 4-Tier Pricing Grid (Compact & Proportioned)
   ========================================================================== */
.clay-pricing-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(12px, 2vw, 18px);
    margin-bottom: clamp(28px, 5vw, 48px);
}

.clay-price-card {
    background: var(--clay-card-tint);
    border-radius: 22px;
    border: 3px solid var(--clay-border);
    box-shadow: var(--clay-shadow-card);
    padding: clamp(16px, 2.2vw, 22px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    box-sizing: border-box;
}

.clay-price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(138, 107, 85, 0.14);
    border-color: #dfc2a2;
}

.clay-price-card.featured {
    border-color: #c4b5fd;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(140, 103, 216, 0.14);
}

.clay-popular-pill {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #e8527a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(232, 82, 122, 0.35);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.clay-popular-pill svg,
.clay-popular-pill .clay-nav-svg {
    width: 12px !important;
    height: 12px !important;
    vertical-align: -1px;
    flex-shrink: 0;
}

.clay-plan-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--clay-brown-text);
    margin-bottom: 6px;
    white-space: nowrap;
    line-height: 1.25;
}

.clay-plan-tagline {
    font-size: 13px;
    color: var(--clay-sub-text);
    margin-bottom: 14px;
    min-height: 34px;
    line-height: 1.45;
    font-weight: 500;
}

/* Compact Price Display: Guaranteed Single-Line Anti-Wrapping */
.clay-plan-price {
    font-size: clamp(20px, 2.4vw, 24px);
    font-weight: 900;
    color: var(--clay-brown-text);
    margin-bottom: 14px;
    line-height: 1.2;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.clay-plan-price small {
    font-size: 12.5px;
    color: var(--clay-sub-text);
    font-weight: 700;
}

/* Compact Clean Feature Checklist */
.clay-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clay-plan-features li {
    font-size: 13.5px;
    color: var(--clay-brown-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.clay-plan-features li.dimmed {
    color: #a89bb8;
    text-decoration: line-through;
}

.clay-feat-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d4f7e2;
    color: #1e7e4e;
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clay-feat-cross {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f3f0f7;
    color: #b0a5c4;
    font-size: 10.5px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   3. Feature Comparison Table (Proportioned & Crisp)
   ========================================================================== */
.clay-comparison-card {
    background: var(--clay-card-tint);
    border-radius: clamp(20px, 3.5vw, 30px);
    border: 3px solid var(--clay-border);
    box-shadow: var(--clay-shadow-card);
    padding: clamp(16px, 3vw, 28px);
    margin-bottom: clamp(28px, 5vw, 48px);
}

.clay-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.clay-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    min-width: 580px;
}

.clay-compare-table th {
    padding: 10px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    color: var(--clay-brown-text);
}

.clay-compare-table th:first-child {
    text-align: left;
    width: 42%;
}

.clay-compare-table td {
    padding: 11px 12px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--clay-brown-text);
    background: #ffffff;
    border-top: 1.5px solid var(--clay-border);
    border-bottom: 1.5px solid var(--clay-border);
}

.clay-compare-table td:first-child {
    text-align: left;
    border-left: 1.5px solid var(--clay-border);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-weight: 800;
}

.clay-compare-table td:last-child {
    border-right: 1.5px solid var(--clay-border);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ==========================================================================
   4. Licensing FAQ Accordion / Cards
   ========================================================================== */
.clay-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 2vw, 18px);
    margin-bottom: clamp(28px, 5vw, 48px);
}

.clay-faq-card {
    background: #ffffff;
    border-radius: clamp(16px, 2.5vw, 22px);
    border: 2px solid var(--clay-border);
    box-shadow: var(--clay-shadow-squircle);
    padding: clamp(14px, 2.5vw, 20px);
    transition: transform 0.2s ease;
}

.clay-faq-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(138, 107, 85, 0.1);
}

.clay-faq-q {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--clay-brown-text);
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.35;
}

.clay-faq-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.clay-faq-icon-svg svg,
.clay-faq-icon-svg .clay-nav-svg {
    width: 17px !important;
    height: 17px !important;
    color: var(--clay-lavender-dark, #6d28d9);
    vertical-align: -2px;
}

.clay-faq-a {
    font-size: 13.5px;
    color: var(--clay-sub-text);
    line-height: 1.6;
    font-weight: 500;
}

/* ==========================================================================
   5. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
    .clay-pricing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .clay-pricing-grid-4 {
        grid-template-columns: 1fr;
    }

    .clay-faq-grid {
        grid-template-columns: 1fr;
    }

    .clay-plan-tagline {
        min-height: auto;
    }
}