html:has(.plans-modal[open]), html:has(.plans-modal[open]) body { overflow: hidden; overscroll-behavior: none; }
.plans-modal {
    --pine: #0f3f3f;
    --silver: #d1d6d2;
    margin: auto;
    padding: 0;
    width: min(1060px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 24px);
    border: 0;
    border-radius: 28px;
    color: var(--pine);
    background: radial-gradient(ellipse at 50% 85%, #ecf0ed, #fff 72%);
    box-shadow: 0 20px 65px rgba(7,37,34,.25);
    font: 400 19.2px/1.45 'Nunito', sans-serif;
    text-align: start;
    overscroll-behavior: contain;
}
.plans-modal::backdrop { background: rgba(13,44,42,.57); }
.plans-modal [hidden] { display: none; }
.plans-modal :is(button,a) { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.plans-modal :focus-visible { outline: 3px solid #377c70; outline-offset: 2px; }
.plans-top {
    display: flex;
    align-items: center;
    padding: 6px 12px 0;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
}
.plans-top button,.plans-nav button { display: grid; place-items: center; padding: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--pine); background: transparent; box-shadow: none; font-size: 36px; line-height: 1; }
.plans-top [data-plan-close] { margin-left: auto; }
.plans-top button:hover,.plans-nav .plan-arrow:hover { background: #ecf1ee; }
.plans-selector { container-type: inline-size; }
.plans-stage {
    --card-width: min(34cqw, 355px);
    position: relative;
    height: calc(var(--card-width) * 1.49 + 38px);
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
}
.plans-stage:active { cursor: grabbing; }
.plan-card {
    position: absolute;
    container-type: inline-size;
    top: 50%; left: 50%;
    width: var(--card-width);
    height: calc(var(--card-width) * 1.49);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: clamp(5px, .6vw, 8px) solid #fafbf9;
    border-radius: calc(var(--card-width) * .125);
    background: linear-gradient(135deg,#f5f6f3 5%,#e4e7e3 52%,#d9dfdb 100%);
    box-shadow: 0 12px 20px -9px rgba(17,58,53,.45), 0 0 8px rgba(16,54,50,.09);
    transform: translate(-50%,-50%) perspective(1100px) translateX(var(--offset)) rotateY(var(--yaw)) scale(var(--scale));
    transition: transform .42s cubic-bezier(.22,.74,.24,1);
}
.plan-card[data-position=center] { --offset: 0%; --yaw: 0deg; --scale: 1; z-index: 2; }
.plan-card[data-position=left] { --offset: -87%; --yaw: -22deg; --scale: .84; z-index: 1; }
.plan-card[data-position=right] { --offset: 87%; --yaw: 22deg; --scale: .84; z-index: 1; }
.plan-card header,.plan-details header {
    display: grid; justify-items: center; align-content: center;
    color: #fff;
    background: radial-gradient(ellipse at 48% 25%,#19524e,var(--pine) 80%);
}
.plan-card header {
    flex: 0 0 37%; gap: 1cqw; padding-bottom: 4cqw;
    clip-path: ellipse(82% 100% at 50% 0%);
}
.plan-gem { display: block; width: 22cqw; height: 22cqw; }
.plans-modal h2,.plans-modal h3,.plans-modal p { margin: 0; }
.plan-card h2 { font-size: 12.24cqw; line-height: 1.12; font-weight: 700; }
.plans-modal ul { margin: 0; list-style-type: disc; }
.plans-modal li::marker { color: var(--pine); }
.plan-card ul { flex: 1; display: grid; align-content: start; gap: 4.4cqw; padding: 6.7cqw 4cqw 3cqw 12cqw; color: #162a24; font-size: 7.68cqw; font-weight: 700; line-height: 1.26; }
.plan-quote,.plan-whatsapp {
    border: 0; border-radius: 999px;
    color: var(--pine);
    background: linear-gradient(173deg,#f3f5f2,var(--silver) 64%,#c2cec8);
    box-shadow: inset 0 2px 5px rgba(255,255,255,.82),inset 0 -3px 5px -2px #9aaea4,0 5px 9px -4px #5e7c72;
    font-weight: 700;
}
.plan-quote { margin: 1cqw 7cqw 7.5cqw; min-height: 18cqw; font-size: 9.6cqw; }
.plans-nav { display: flex; align-items: center; justify-content: center; gap: 1px; padding: 0 0 14px; }
.plans-nav .plan-dot { width: 32px; }
.plan-dot::before { content: ''; width: 13px; height: 13px; border-radius: 50%; background: #c5cfca; }
.plan-dot[aria-pressed=true]::before { background: var(--pine); }
.plan-arrow:first-child { margin-right: 8px; }
.plan-arrow:last-child { margin-left: 8px; }
.plan-details { max-height: min(760px,calc(100dvh - 82px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #bccbc4 transparent; }
.plans-modal:has(.plan-details:not([hidden])) { width: min(650px,calc(100% - 32px)); }
.plan-details header { margin: 8px 20px 0; padding: 16px 12px 20px; border-radius: 22px; gap: 4px; }
.plan-details .plan-gem { width: 54px; height: 54px; }
.plan-details h2 { font-size: 33.6px; line-height: 1.15; }
.plan-services { padding: 20px clamp(20px,5vw,44px) 32px; }
.plan-services h3 { font-size: 22.8px; }
.plan-services ul { padding-left: 1.16em; margin: 7px 0 18px; }
.plan-services li { padding-left: .15em; margin-bottom: 4px; }
.plan-services p { margin-bottom: 15px; }
.plan-whatsapp { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; margin-top: 20px; text-decoration: none; text-align: center; }
.plan-whatsapp svg { width: 23px; height: 23px; flex: none; }
@container (max-width: 670px) {
    .plans-stage { --card-width: min(76cqw, 315px); height: calc(var(--card-width) * 1.49 + 32px); }
}
@media (max-width: 680px) {
    .plans-modal,.plans-modal:has(.plan-details:not([hidden])) { width: calc(100% - 12px); border-radius: 20px; }
    .plans-top { padding: 4px 5px 0; }
    .plan-details header { margin: 6px 12px 0; }
}
@media (prefers-reduced-motion: reduce) { .plan-card { transition: none; } }
