/* Generic, facade-branded pricing/checkout page -- one real page, reused by every marketing site
   (DistrictNexus/TotalOpsCloud/MissionBridgeHQ). Branding comes entirely from CSS custom
   properties the page sets from its own tenant's theme (see pricing.js), not a separate
   per-facade copy of this file. */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f7f8fb;
    color: #1a2233;
    margin: 0;
}

/* Minimal site nav shared by every generic PublicSite page (pricing, checkout success, 404) --
   a real site's own nav (if any) is separate/richer; this just keeps a visitor from getting
   stranded with no way back to the marketing site's home page. */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.site-nav__brand {
    font-weight: 700;
    font-size: 18px;
    color: #1a2233;
    text-decoration: none;
}

.site-nav__links {
    display: flex;
    gap: 20px;
}

.site-nav__link {
    color: #444;
    text-decoration: none;
    font-size: 14px;
}

.site-nav__link:hover {
    color: #1a2233;
}

.pricing-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-header h1 {
    font-size: 32px;
    margin: 0 0 10px;
}

.pricing-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 24px 0 40px;
    font-size: 14px;
}

.pricing-toggle button {
    border: 1px solid #d8dce6;
    background: white;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.pricing-toggle button.active {
    background: var(--brand-primary, #4a5ee0);
    border-color: var(--brand-primary, #4a5ee0);
    color: white;
}

.pricing-toggle .save-badge {
    font-size: 12px;
    color: #1a7f4b;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e6e9f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.pricing-card h2 {
    font-size: 19px;
    margin: 0 0 6px;
}

.pricing-card .pricing-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 18px;
    min-height: 36px;
}

.pricing-card .pricing-amount {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--brand-primary, #1a2233);
}

.pricing-card .pricing-amount .pricing-period {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

.pricing-card .pricing-trial {
    font-size: 12px;
    color: #1a7f4b;
    font-weight: 600;
    margin: 0 0 18px;
    min-height: 16px;
}

.pricing-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.pricing-highlights li {
    font-size: 13px;
    padding: 6px 0;
    border-top: 1px solid #f0f1f5;
    display: flex;
    gap: 8px;
}

.pricing-highlights li:first-child {
    border-top: none;
}

.pricing-highlights li::before {
    content: "✓";
    color: #1a7f4b;
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-cta {
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: var(--brand-primary, #4a5ee0);
    color: white;
}

.pricing-cta:hover {
    opacity: 0.9;
}

.pricing-cta.pricing-cta-secondary {
    background: #eef0f6;
    color: #333;
}

/* ---- Signup modal ---- */

.pricing-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.pricing-modal {
    background: white;
    border-radius: 12px;
    padding: 28px 30px 30px;
    width: 420px;
    max-width: 92vw;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.pricing-modal h3 {
    margin: 0 0 4px;
    font-size: 19px;
}

.pricing-modal .pricing-modal-sub {
    font-size: 13px;
    color: #777;
    margin: 0 0 20px;
}

.pricing-modal label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: #555;
    margin-bottom: 14px;
}

.pricing-modal input {
    padding: 9px 11px;
    border: 1px solid #d8dce6;
    border-radius: 6px;
    font-size: 14px;
}

.pricing-modal .pricing-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pricing-modal-error {
    color: #b3261e;
    font-size: 12px;
    margin: 0 0 12px;
}

.pricing-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}

.pricing-modal-inner {
    position: relative;
}

.pricing-footer-note {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 40px;
}
