/* ==========================================================================
   WhichAIPlan - Plan Cards Geometry, Header, Price, Checklist & Dock
   ========================================================================== */

/* Plan Comparison Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 14px;
}
.plans-grid.plans-count-3 {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

/* Individual Plan Card Container */
.plan-card {
    background: rgba(8, 12, 20, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.35);
    border-radius: 12px;
    padding: 0 14px 14px 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.plan-card:hover {
    transform: translateY(-3px);
    border-color: #00f0ff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.2);
}

.plan-card-inviso {
    visibility: hidden;
    pointer-events: none;
    height: 0;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: none;
}

/* Zone 1: Top Header Bar (H1 Neon Beam with Company Subtitle) */
.plan-card-top-row {
    margin: 0 -14px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 42px 7px 12px;
    background: rgba(8, 12, 20, 0.95);
    border-bottom: 1px solid rgba(0, 240, 255, 0.35);
    box-shadow: 0 2px 10px rgba(0, 240, 255, 0.12);
    position: relative;
}
.plan-header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 2px;
}
.plan-name {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.plan-company {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.2px;
    line-height: 1.1;
}
.plan-card-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    object-fit: contain;
    pointer-events: none;
    opacity: 0.95;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.plan-card:hover .plan-card-icon {
    transform: translateY(-50%) scale(1.12);
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.45));
}

/* Zone 2: Price Display (Electric Cyan) */
.plan-price {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-cyan);
    text-align: center;
    letter-spacing: -0.5px;
    text-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

/* Zone 4: Feature Checklist */
.plan-features {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0 4px 0 0;
    height: 160px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.4) transparent;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.plan-features::-webkit-scrollbar { width: 5px; }
.plan-features::-webkit-scrollbar-track { background: transparent; }
.plan-features::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.4);
    border-radius: 4px;
}
.plan-features li {
    font-size: 13.5px;
    line-height: 1.45;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.plan-features li::before {
    content: "✓";
    color: #34d399;
    font-weight: 800;
}

/* Brand-Specific Native Border, Divider & Scrollbar Theming */
.plan-card-google { border-color: rgba(123, 165, 255, 0.35); }
.plan-card-google .plan-card-top-row { border-bottom-color: rgba(123, 165, 255, 0.35); }
.plan-card-google .plan-features { scrollbar-color: rgba(123, 165, 255, 0.45) transparent; }
.plan-card-google .plan-features::-webkit-scrollbar-thumb { background: rgba(123, 165, 255, 0.45); }
.plan-card-google:hover { border-color: #7ba5ff; box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 16px rgba(123, 165, 255, 0.28); }

.plan-card-openai { border-color: rgba(16, 185, 129, 0.35); }
.plan-card-openai .plan-card-top-row { border-bottom-color: rgba(16, 185, 129, 0.35); }
.plan-card-openai .plan-features { scrollbar-color: rgba(16, 185, 129, 0.45) transparent; }
.plan-card-openai .plan-features::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, 0.45); }
.plan-card-openai:hover { border-color: #10b981; box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 16px rgba(16, 185, 129, 0.28); }

.plan-card-anthropic { border-color: rgba(224, 114, 76, 0.4); }
.plan-card-anthropic .plan-card-top-row { border-bottom-color: rgba(224, 114, 76, 0.4); }
.plan-card-anthropic .plan-features { scrollbar-color: rgba(224, 114, 76, 0.5) transparent; }
.plan-card-anthropic .plan-features::-webkit-scrollbar-thumb { background: rgba(224, 114, 76, 0.5); }
.plan-card-anthropic:hover { border-color: #e0724c; box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 16px rgba(224, 114, 76, 0.28); }

.plan-card-xai { border-color: rgba(226, 232, 240, 0.35); }
.plan-card-xai .plan-card-top-row { border-bottom-color: rgba(226, 232, 240, 0.35); }
.plan-card-xai .plan-features { scrollbar-color: rgba(226, 232, 240, 0.45) transparent; }
.plan-card-xai .plan-features::-webkit-scrollbar-thumb { background: rgba(226, 232, 240, 0.45); }
.plan-card-xai:hover { border-color: #ffffff; box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 16px rgba(255, 255, 255, 0.28); }

/* Responsive Overrides (Approach A: Natural Height on Mobile) */
@media (max-width: 900px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .plans-grid { grid-template-columns: 1fr; }
    .plan-features { height: auto; overflow-y: visible; overscroll-behavior: auto; }
}
