/* Shared modern styling for pricing.php, plan-review.php, and checkout.php.
   Builds on policy-pages.css (topbar, shell, header, --accent tokens). */

.pricing-lead {
    margin: 0 0 20px;
    max-width: 640px;
    color: var(--policy-muted, #6b7280);
    font-size: 15px;
    line-height: 1.7;
}

.role-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.role-switch a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    color: #6b7280;
}

.role-switch a.active {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Plan grid */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.plan-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.plan-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.plan-featured-tag {
    position: absolute;
    top: -11px;
    left: 20px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
}

.plan-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.plan-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    flex-shrink: 0;
}

.plan-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1f2937;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan-price strong {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1f2937;
}

.plan-price span {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
}

.plan-copy {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.plan-features {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}

.plan-features li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 7px;
    flex-shrink: 0;
}

.plan-cta {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: var(--accent);
    border: none;
    cursor: pointer;
    width: 100%;
}

.plan-cta.secondary {
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--accent);
}

/* Decision card / checkout */
.decision-card {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.decision-summary {
    padding: 28px;
    border-bottom: 1px solid #e5e7eb;
}

.decision-summary .kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.decision-summary h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1f2937;
}

.decision-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
}

.decision-price-row strong {
    font-size: 34px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.decision-price-row span {
    color: #9ca3af;
    font-weight: 600;
    font-size: 14px;
}

.decision-body {
    padding: 24px 28px;
}

.decision-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.decision-row:last-of-type {
    border-bottom: none;
}

.decision-row .label {
    color: #6b7280;
}

.decision-row .value {
    color: #1f2937;
    font-weight: 700;
}

.decision-actions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

/* Checkout payment panel */
.pay-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

.pay-amount {
    font-size: 36px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.02em;
    margin: 8px 0 20px;
}

.pay-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    background: var(--accent);
    cursor: pointer;
}

.pay-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pay-notice {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 16px;
    text-align: left;
}

.pay-notice.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.pay-notice.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.pay-notice.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

@media (max-width: 640px) {
    .decision-summary, .decision-body, .pay-panel {
        padding: 20px;
    }
}
