/* ============================================================
   Plan Cards — unified pricing + plan-selection UI
   Single source of truth for:
     • Home /Pricing (static browse)
     • Account/Register (selectable radio-labels)
     • Business/Billing (browse + current-plan marker + checkout)
   ============================================================ */

:root {
    --pc-teal:        var(--mo-teal, #1D9E75);
    --pc-teal-dark:   var(--mo-teal-dark, #085041);
    --pc-teal-light:  var(--mo-teal-light, #9FE1CB);
    --pc-teal-faint:  var(--mo-teal-faint, #E1F5EE);
    --pc-border:      var(--border, #E2E8F0);
    --pc-ink:         #0F172A;
    --pc-body:        #334155;
    --pc-muted:       #64748B;
    --pc-bg:          #FFFFFF;
    --pc-bg-soft:     #F8FAFC;
    --pc-radius:      16px;
    --pc-radius-sm:   8px;
    --pc-shadow-sm:   0 2px 8px rgba(15, 23, 42, .05);
    --pc-shadow-md:   0 8px 22px rgba(15, 23, 42, .08);
    --pc-shadow-tl:   0 10px 28px rgba(29, 158, 117, .18);
}

/* ── Section wrappers ───────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 0;
    align-items: stretch;
}

.pricing-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.pricing-grid.is-wide {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2.5rem;
}

.pricing-foot {
    text-align: center;
    margin-top: 2rem;
    font-size: .88rem;
    color: var(--pc-muted);
}

.pricing-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--pc-muted);
}

/* ── Card base ──────────────────────────────────────────── */
.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    background: var(--pc-bg);
    border: 1.5px solid var(--pc-border);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
    min-height: 100%;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pc-shadow-md);
    border-color: var(--pc-teal-light);
}

/* Most-popular plan (static emphasis) */
.pricing-card.is-highlighted {
    border-color: var(--pc-teal);
    box-shadow: var(--pc-shadow-tl);
    transform: translateY(-4px);
}

/* Current plan (Billing) */
.pricing-card.is-current {
    border-color: var(--pc-teal);
    background: var(--pc-teal-faint);
}

/* Card as a form control (Register) */
.pricing-card.is-selectable {
    cursor: pointer;
    margin: 0;
}
.pricing-card.is-selectable:focus-within {
    border-color: var(--pc-teal);
    box-shadow: 0 0 0 4px rgba(29, 158, 117, .15);
    outline: none;
}
.pricing-card.is-selected {
    border-color: var(--pc-teal);
    background: var(--pc-teal-faint);
    box-shadow: 0 0 0 3px rgba(29, 158, 117, .12), var(--pc-shadow-md);
    transform: translateY(-2px);
}
.pricing-card.is-selected.is-highlighted {
    box-shadow: 0 0 0 3px rgba(29, 158, 117, .15), var(--pc-shadow-tl);
}
.pricing-card.is-disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* Visually-hidden radio inside selectable cards */
.pricing-card .pricing-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Selected check-mark on the card (upper-right) */
.pricing-card.is-selectable.is-selected::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: .65rem;
    right: .65rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pc-teal);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .7rem;
}

/* ── Badge (Most Popular / Current) ─────────────────────── */
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: .3rem .8rem;
    background: var(--pc-teal);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(29, 158, 117, .3);
    white-space: nowrap;
}
.pricing-badge--current {
    background: #475569;
    box-shadow: 0 4px 10px rgba(71, 85, 105, .25);
}

/* ── Header ─────────────────────────────────────────────── */
.pricing-header {
    margin-bottom: 1rem;
}

.pricing-name {
    margin: 0 0 .25rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--pc-teal-dark);
    letter-spacing: -.01em;
}

.pricing-tagline {
    margin: 0;
    font-size: .85rem;
    color: var(--pc-muted);
    line-height: 1.4;
    min-height: 2.4em;
}

/* ── Price block ────────────────────────────────────────── */
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: .25rem;
    flex-wrap: wrap;
    margin: 0 0 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px dashed var(--pc-border);
}

.pricing-price-currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--pc-muted);
    align-self: flex-start;
    margin-top: .35rem;
}

.pricing-price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pc-ink);
    line-height: 1;
    letter-spacing: -.02em;
}

.pricing-price-suffix {
    font-size: .82rem;
    color: var(--pc-muted);
    font-weight: 500;
}

/* ── Limits (3-up stat row) ─────────────────────────────── */
.pricing-limits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin: 0 0 1.1rem;
}

.pricing-limit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .5rem .25rem;
    background: var(--pc-bg-soft);
    border-radius: var(--pc-radius-sm);
    text-align: center;
}
.pricing-card.is-current .pricing-limit,
.pricing-card.is-selected .pricing-limit {
    background: rgba(255, 255, 255, .75);
}

.pricing-limit strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--pc-teal-dark);
    line-height: 1.1;
}
.pricing-limit span {
    font-size: .65rem;
    color: var(--pc-muted);
    margin-top: .15rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: center;
}

/* ── Feature list ───────────────────────────────────────── */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    flex: 1;
}

.pricing-features li {
    position: relative;
    padding: .3rem 0 .3rem 1.4rem;
    font-size: .85rem;
    color: var(--pc-body);
    line-height: 1.45;
}

.pricing-features li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: .4rem;
    color: var(--pc-teal);
    font-size: .72rem;
}

/* ── CTA / bottom area ──────────────────────────────────── */
.pricing-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-top: auto;
}

/* ── Step indicator (Register) ──────────────────────────── */
.pricing-steps {
    display: flex;
    gap: .5rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}
.pricing-step {
    flex: 1;
    min-width: 100px;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .8rem;
    border-radius: var(--pc-radius-sm);
    background: #F1F5F9;
    color: var(--pc-muted);
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.pricing-step span {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #CBD5E1;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
}
.pricing-step.is-active {
    background: var(--pc-teal-faint);
    color: var(--pc-teal-dark);
    border-color: var(--pc-teal-light);
}
.pricing-step.is-active span { background: var(--pc-teal); }

/* ── Note / trust callouts ──────────────────────────────── */
.pricing-note {
    margin: 1rem 0 0;
    padding: .75rem 1rem;
    border-radius: var(--pc-radius-sm);
    background: #F1F5F9;
    color: #334155;
    font-size: .82rem;
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    line-height: 1.45;
}
.pricing-note i { color: var(--pc-teal); margin-top: .15rem; }

.pricing-trust {
    margin: .85rem 0 0;
    text-align: center;
    font-size: .78rem;
    color: var(--pc-muted);
}
.pricing-trust i { color: var(--pc-teal); margin-right: .25rem; }

.pricing-group-legend {
    font-weight: 700;
    color: var(--pc-ink);
    margin: 0 0 .75rem;
    padding: 0;
    font-size: .95rem;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .pricing-card { padding: 1.4rem 1.2rem; }
    .pricing-tagline { min-height: 0; }
    .pricing-price-value { font-size: 2.15rem; }
    .pricing-steps .pricing-step { font-size: .76rem; padding: .45rem .65rem; min-width: 0; }
}
@media (max-width: 520px) {
    .pricing-grid { grid-template-columns: 1fr; }
}
