/* Plan chooser and payment confirmation modals. Shared by the homepage
   and /pricing/; moved unchanged from index.html. */

.co-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 32, 28, 0.55);
    backdrop-filter: blur(3px);
}
.co-overlay.is-open { display: flex; }
.co-dialog {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 26px 24px;
    box-shadow: 0 24px 60px rgba(20, 32, 28, 0.35);
    position: relative;
    animation: coPop .22s ease-out;
}
@keyframes coPop {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.co-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f1efe9;
    color: #40514b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.co-close:hover { background: #e7e4dc; }
.co-eyebrow {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1f5c4f;
    font-weight: 700;
    margin: 0 0 6px;
}
.co-title {
    font-size: 21px;
    margin: 0 0 4px;
    color: #17231f;
}
.co-lede {
    font-size: 14px;
    color: #5b6b64;
    margin: 0 0 18px;
}
.co-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: 1.5px solid #e2ded4;
    background: #fbfaf6;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .05s;
}
.co-plan:hover {
    border-color: #1f5c4f;
    box-shadow: 0 4px 14px rgba(31, 92, 79, 0.12);
}
.co-plan:active { transform: translateY(1px); }
.co-plan[disabled] { opacity: .6; cursor: default; }
.co-plan-name { font-weight: 700; color: #17231f; font-size: 15px; }
.co-plan-meta { font-size: 12.5px; color: #6a786f; margin-top: 2px; }
.co-plan-price { text-align: right; white-space: nowrap; }
.co-plan-amount { font-weight: 700; color: #1f5c4f; font-size: 18px; }
.co-plan-period { font-size: 12px; color: #6a786f; }
.co-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1f5c4f;
    background: #dff0ea;
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
}
.co-foot {
    font-size: 12px;
    color: #8a958f;
    margin: 8px 0 0;
    text-align: center;
}
.co-error {
    display: none;
    font-size: 13px;
    color: #b23b2e;
    background: #fbeae7;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 0 12px;
}
.co-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #dff0ea;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.co-center { text-align: center; }
.co-btn {
    display: inline-block;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    background: #1f5c4f;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 22px;
    cursor: pointer;
}
.co-btn:hover { background: #1a4f43; }
.co-person {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: #f4f8f6;
    border: 1px solid #dfece7;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 6px 0 18px;
}
.co-avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #1f5c4f;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.co-avatar img { width: 100%; height: 100%; object-fit: cover; }
.co-person-name { display: block; font-weight: 700; color: #17231f; font-size: 14.5px; }
.co-person-role { display: block; font-size: 12.5px; color: #6a786f; margin-top: 1px; }
.co-cta {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 11px;
    background: #1f5c4f;
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    padding: 14px 20px;
    cursor: pointer;
}
.co-cta:hover { background: #1a4f43; }
.co-secondary {
    display: inline-block;
    margin-top: 12px;
    background: none;
    border: none;
    color: #6a786f;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: underline;
}
.co-secondary:hover { color: #17231f; }
.co-fineprint { font-size: 11.5px; color: #98a29c; margin: 14px 0 0; }
