/* =============================================================================
   pricing.css: Styles for pricing.html
   Extends style.css; requires style.css to be loaded first.
   ============================================================================= */

/* ---- Tier cards ---- */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.tier-card {
    background: var(--card-bg);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.tier-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(88, 166, 255, 0.08);
    position: relative;
}

.tier-card.featured::after {
    content: "most popular";
    position: absolute;
    top: -11px;
    right: 20px;
    background: var(--accent);
    color: #0d1117;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 4px;
}

.tier-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.tier-price {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.tier-price .unit {
    font-size: 0.95rem;
    font-weight: 400;
    color: #8b949e;
}

.tier-sub {
    font-size: 0.8rem;
    color: #484f58;
    font-family: var(--font-mono);
    margin-bottom: 24px;
    min-height: 20px;
}

.tier-divider {
    border: none;
    border-top: 1px solid #30363d;
    margin: 0 0 20px;
}

.tier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
    margin-bottom: 28px;
}

.tier-features li {
    font-size: 0.88rem;
    color: #484f58;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.tier-features li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #30363d;
}

.tier-features li.on {
    color: var(--text-main);
}

.tier-features li.on::before {
    content: "→";
    color: var(--accent);
}

.tier-features li .note {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: #484f58;
    margin-left: 4px;
}

/* ---- Tier buttons ---- */
.btn-tier {
    display: block;
    text-align: center;
    padding: 13px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.4s ease;
}

.btn-tier:hover {
    opacity: 1;
    background: var(--accent);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
    border-color: var(--accent);
}
.btn-tier-primary:hover {
    opacity: 0.9;
}

.btn-tier-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-tier-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-tier-ghost {
    background: transparent;
    color: #8b949e;
    border: 1px solid #30363d;
}

/* ---- Enterprise bar ---- */
.enterprise-bar {
    background: var(--card-bg);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 28px 32px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.enterprise-bar .enterprise-text { flex: 1; }
.enterprise-bar .tier-label { margin-bottom: 6px; }

.enterprise-bar p {
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ---- Support bar ---- */
.support-bar {
    background: var(--card-bg);
    border: 1px solid #30363d;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 20px 24px;
    margin-top: 40px;
}

.support-bar h3 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 10px;
}

.support-bar p {
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.support-bar strong { color: var(--text-main); }

/* ---- Note bar ---- */
.pricing-note-bar {
    background: var(--card-bg);
    border: 1px solid #30363d;
    border-left: 3px solid #f0883e;
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 0.85rem;
    color: #8b949e;
    line-height: 1.6;
    margin-top: 20px;
}

.pricing-note-bar strong { color: var(--text-main); }

/* ---- FAQ ---- */
.pricing-faq { margin-top: 80px; }
.pricing-faq h2 { font-size: 1.6rem; margin-bottom: 36px; }

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 60px;
}

.faq-item h3 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.faq-item p {
    font-size: 0.88rem;
    color: #8b949e;
    line-height: 1.7;
}

.faq-item p a {
    color: var(--accent);
    text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .tier-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .enterprise-bar { flex-direction: column; text-align: center; }
    .faq-grid { grid-template-columns: 1fr; }
}
