/* =========================================================================
   Pricing page (Pricing.cshtml) — page-scoped styles.
   ========================================================================= */

/* ---------- Page header ---------- */
.pricing-header {
    padding: 80px 0 56px;
    text-align: center;
}
.pricing-header-inner {
    max-width: 760px;
    margin: 0 auto;
}
.pricing-header h1 {
    margin-bottom: 16px;
}
.pricing-subhead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--slate);
    margin: 0;
}

@media (max-width: 768px) {
    .pricing-header { padding: 48px 0 32px; }
}

/* ---------- Tier grid ----------
   6 cards total (Free trial · BYOK Free · Solo · Starter · Pro · Enterprise).
   Layout strategy:
     >=1024px → 3 cols → 3 + 3 rows (Pro in middle of bottom row)
     <1024px  → 2 cols → 2 + 2 + 2
     <600px   → 1 col  → stacked
*/
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.tier-card {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.tier-card:hover {
    box-shadow: var(--shadow-md);
}

/* Featured (Pro) — lifted, navy border, tag */
.tier-featured {
    border: 2px solid var(--navy);
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}
.tier-featured:hover {
    box-shadow: 0 8px 24px rgba(15, 42, 71, 0.12);
}
.tier-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.tier-name {
    font-size: 1.25rem;
    margin: 0 0 16px;
    color: var(--ink);
}

.tier-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.tier-price-amount {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.02em;
}
.tier-price-period {
    color: var(--slate);
    font-size: 0.95rem;
}

.tier-allowance {
    margin: 0 0 24px;
    color: var(--slate);
    font-weight: 500;
}

.tier-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.tier-bullets li {
    position: relative;
    padding-left: 24px;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.4;
}
.tier-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232574ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8.5l3 3 7-7'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
}

.tier-cta {
    width: 100%;
    margin-top: auto;
}

/* Tier-grid responsive breakpoints */
@media (max-width: 1024px) {
    .tier-grid { grid-template-columns: repeat(2, 1fr); }
    .tier-featured { transform: none; } /* lift looks weird in narrow pairs */
}
@media (max-width: 600px) {
    .tier-grid { grid-template-columns: 1fr; }
}

/* Notes under the grid */
.tier-note {
    text-align: center;
    color: var(--slate);
    font-size: 0.9rem;
    margin: 24px auto 0;
    max-width: 720px;
}
.tier-note:first-of-type { margin-top: 40px; }

/* ---------- On-prem ---------- */
.onprem {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}
.onprem-intro {
    max-width: 760px;
    margin-bottom: 36px;
}
.onprem-intro h2 {
    margin-bottom: 12px;
}
.onprem-intro p {
    margin: 0;
    color: var(--slate);
    font-size: 1.05rem;
}

.onprem-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 36px;
}
.onprem-col h3 {
    margin-bottom: 16px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
}

.onprem-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.onprem-list li {
    position: relative;
    padding-left: 20px;
    color: var(--ink);
    line-height: 1.45;
}
.onprem-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
}
.onprem-price-list strong { color: var(--ink); font-weight: 700; }

.onprem-cta {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .onprem { padding: 28px 24px; }
    .onprem-cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---------- FAQ ---------- */
.faq {
    max-width: 800px;
    margin: 0 auto;
}
.faq-heading {
    text-align: center;
    margin-bottom: 40px;
}
.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-item h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}
.faq-item p {
    margin: 0;
    color: var(--slate);
    line-height: 1.6;
}

/* (Final-CTA styles live in site.css — shared across pages) */
