/* Shared card grid used on /pricing + /register/plan — 3 paid tiles with
   tone-per-plan (business = mint accent, enterprise = dark card), a full-
   width Custom strip and a full-width Free strip. Kept in one file so any
   visual change to the pricing story updates both surfaces at once.

   NOT included here (page-specific):
     - .ym-pp-wrap    (plan_picker viewport-height layout)
     - .ym-pp-header  (plan_picker stepper header)
     - .ym-pp-brand / .ym-pp-stepper / .ym-pp-userline / .ym-pp-title
*/

:root {
    --ym-primary: #4CAF87;
    --ym-primary-dark: #15803D;
    --ym-primary-faded: #E8F5E9;
}

/* ---- Toggle (Monthly / Yearly pill) ---- */
.ym-pp-toggle {
    display: inline-flex; padding: .25rem; gap: .25rem;
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 999px;
    box-shadow: 0 2px 6px -2px rgba(15, 23, 42, .10);
    flex: 0 0 auto;
}
.ym-pp-toggle button {
    border: 0; background: transparent; color: #475569;
    padding: .5rem 1.15rem; border-radius: 999px;
    font-weight: 600; font-size: .85rem; cursor: pointer;
    display: inline-flex; align-items: center; gap: .5rem;
    transition: background .15s, color .15s;
}
.ym-pp-toggle button:hover { color: #0f172a; }
.ym-pp-toggle button.active { background: var(--ym-primary, #4CAF87); color: #ffffff; }
.ym-pp-save {
    background: rgba(76,175,135,.15); color: var(--ym-primary-dark);
    font-size: .68rem; padding: 2px 7px; border-radius: 5px;
    font-weight: 800; letter-spacing: .02em;
}
.ym-pp-toggle button.active .ym-pp-save { background: rgba(255,255,255,.92); color: var(--ym-primary-dark); }

/* ---- Paid plans grid — 3 across on desktop, 1 on tablet+ ---- */
.ym-pp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1080px;
    margin: 0 auto;
}
.ym-pp-card {
    position: relative;
    display: flex; flex-direction: column;
    padding: 1.35rem 1.25rem 1.15rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}
.ym-pp-card:hover {
    border-color: rgba(76,175,135,.55);
    box-shadow: 0 15px 26px -16px rgba(76,175,135,.40);
    transform: translateY(-2px);
}
.ym-pp-card.is-featured { border-color: var(--ym-primary-dark); }

.ym-pp-tone-business {
    background: linear-gradient(180deg, #ffffff 0%, rgba(76,175,135,.06) 100%);
    border-color: var(--ym-primary-dark);
}
.ym-pp-tone-business .ym-pp-name { color: var(--ym-primary-dark); }

.ym-pp-tone-enterprise {
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    border-color: #0f172a;
}
.ym-pp-tone-enterprise .ym-pp-name       { color: #ffffff; }
.ym-pp-tone-enterprise .ym-pp-price .amt { color: #ffffff; }
.ym-pp-tone-enterprise .ym-pp-price .per { color: #94a3b8; }
.ym-pp-tone-enterprise .ym-pp-billing-note { color: #94a3b8 !important; }
.ym-pp-tone-enterprise .ym-pp-features    { color: #cbd5e1; border-top-color: #334155; }
.ym-pp-tone-enterprise .ym-pp-features li { color: #cbd5e1; }
.ym-pp-tone-enterprise .ym-pp-features li::before {
    background: rgba(255,255,255,.10)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CAF87' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E")
        center / 9px 9px no-repeat;
}
.ym-pp-tone-enterprise .ym-pp-cta-btn {
    background: transparent; color: #ffffff; border-color: rgba(255,255,255,.5);
}
.ym-pp-tone-enterprise .ym-pp-cta-btn:hover {
    background: #ffffff; color: #0f172a; border-color: #ffffff;
}

.ym-pp-badge {
    position: absolute; top: -9px; right: 14px;
    background: var(--ym-primary-dark); color: #fff;
    font-size: .62rem; font-weight: 800;
    padding: 2px 9px; border-radius: 999px;
    letter-spacing: .04em; text-transform: uppercase;
}
.ym-pp-name  { font-size: 1.05rem; font-weight: 700; color: #0f172a; line-height: 1.1; }
.ym-pp-price { margin-top: .4rem; }
.ym-pp-price .amt { font-size: 1.85rem; font-weight: 800; color: var(--ym-primary-dark, #15803D); letter-spacing: -.02em; line-height: 1; }
.ym-pp-price .per { color: #64748b; font-size: .8rem; margin-left: 2px; }
.ym-pp-billing-note { font-size: .72rem; margin-top: 4px; color: #64748b; min-height: 1em; }

.ym-pp-features {
    list-style: none; padding: 0; margin: .5rem 0 .85rem;
    color: #475569; font-size: .82rem; line-height: 1.4;
    flex: 1 1 auto;
    border-top: 1px solid #eef2f7;
    padding-top: .65rem;
}
.ym-pp-features li { padding: .18rem 0 .18rem 1.15rem; position: relative; }
.ym-pp-features li::before {
    content: ""; position: absolute; left: 0; top: .38rem;
    width: 13px; height: 13px; border-radius: 50%;
    background: rgba(76,175,135,.15)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803D' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E")
        center / 9px 9px no-repeat;
}

/* CTA button on the card — works as <button> (plan_picker form) or <a> (pricing link). */
.ym-pp-cta-btn {
    display: block; width: 100%;
    padding: .65rem 1rem;
    background: #ffffff;
    color: var(--ym-primary-dark);
    border: 1.5px solid var(--ym-primary-dark);
    border-radius: 8px;
    font-weight: 700; font-size: .9rem;
    text-align: center; text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}
.ym-pp-cta-btn:hover, .ym-pp-cta-btn:focus {
    background: var(--ym-primary-dark);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}
.ym-pp-cta-btn.is-featured {
    background: var(--ym-primary-dark);
    color: #ffffff;
    border-color: var(--ym-primary-dark);
}
.ym-pp-cta-btn.is-featured:hover {
    background: #0f5132;
    border-color: #0f5132;
    color: #ffffff;
}

.ym-pp-guarantee {
    text-align: center;
    color: #64748b;
    font-size: .8rem;
    margin: 1rem 0 1.25rem;
}

/* ---- Custom strip (full-width, enterprise sales pitch) ---- */
.ym-pp-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1080px;
    margin: 0 auto .75rem;
    padding: 1rem 1.35rem;
    background:
        radial-gradient(90% 100% at 100% 50%, rgba(76,175,135,.12) 0%, transparent 65%),
        linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
    color: #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 12px 28px -18px rgba(15,23,42,.55);
    text-decoration: none;
    transition: transform .18s, box-shadow .18s;
    flex-wrap: wrap;
}
.ym-pp-custom:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -18px rgba(15,23,42,.65);
}
.ym-pp-custom-info { flex: 1 1 auto; min-width: 0; }
.ym-pp-custom-title { color: #ffffff; font-weight: 600; font-size: 1rem; }
.ym-pp-custom-title strong { color: var(--ym-primary, #4CAF87); font-weight: 800; }
.ym-pp-custom-body { color: #cbd5e1; font-size: .82rem; margin-top: 3px; line-height: 1.45; }
.ym-pp-custom-cta {
    flex: 0 0 auto;
    background: var(--ym-primary, #4CAF87);
    color: #ffffff;
    font-weight: 700; font-size: .85rem;
    padding: .55rem 1.1rem;
    border-radius: 8px;
    white-space: nowrap;
    text-decoration: none;
}
.ym-pp-custom:hover .ym-pp-custom-cta {
    background: #ffffff;
    color: var(--ym-primary-dark, #15803D);
}

/* ---- Free plan strip (full-width, under-sold) ---- */
.ym-pp-free {
    max-width: 1080px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: .9rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.ym-pp-free-info { flex: 1 1 auto; min-width: 0; }
.ym-pp-free-title { color: #0f172a; font-weight: 600; font-size: .95rem; }
.ym-pp-free-title strong { color: var(--ym-primary-dark); }
.ym-pp-free-body { color: #64748b; font-size: .8rem; margin-top: 2px; line-height: 1.4; }
.ym-pp-free-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .85rem;
    padding: .45rem 1rem;
    text-decoration: none;
}

@media (max-width: 991px) {
    .ym-pp-grid { grid-template-columns: 1fr; gap: .75rem; }
    .ym-pp-free   { flex-direction: column; align-items: stretch; text-align: center; }
    .ym-pp-free-btn { width: 100%; text-align: center; }
    .ym-pp-custom { flex-direction: column; align-items: stretch; text-align: center; }
    .ym-pp-custom-cta { width: 100%; text-align: center; }
}
@media (max-width: 575px) {
    .ym-pp-card { padding: 1.1rem 1rem .95rem; }
}
