.pricing-section {
    --pricing-ribbon: clamp(18px, 2.15vw, 34px);
    position: relative;
    isolation: isolate;
    color: #fff;
}

.pricing-backdrop {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: clip;
    pointer-events: none;
    background: linear-gradient(108deg, #b7a3f9, #cbb9fd 57%, #dcc9ff 83%, #c5b9fc);
}

.pricing-backdrop img {
    position: absolute;
    top: var(--pricing-ribbon);
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #17204b;
}

@supports (clip-path: shape(from 0 0, line to 100% 100%, close)) {
    .conversion-section:has(+ .pricing-section) > .conversion-backdrop { bottom: calc(-1 * clamp(29px, 4.5vw, 72px)); }

    .pricing-section { margin-top: calc(-1 * clamp(24px, 4.25vw, 66px)); }

    .pricing-backdrop, .pricing-backdrop img {
        clip-path: shape(from 0 clamp(14px, 3.15vw, 48px),
            curve to 58% clamp(32px, 7.1vw, 109px) with 17% 7px / 39% clamp(29px, 6.6vw, 100px),
            curve to 100% 0 with 74% clamp(31px, 6.9vw, 106px) / 91% clamp(12px, 4.25vw, 65px),
            line to 100% 100%, line to 0 100%, close);
    }
}

.pricing-layout {
    width: min(1180px, calc(100% - 8.5vw));
    margin-inline: auto;
    padding-block: clamp(113px, 10.9vw, 166px) clamp(60px, 6vw, 96px);
}

.pricing-head { max-width: 760px; margin: 0 auto clamp(32px, 3.5vw, 52px); text-align: center; }

.pricing-head h2 {
    font-size: clamp(46px, 5.4vw, 82px);
    font-weight: 750;
    line-height: .98;
    letter-spacing: -.06em;
}

.pricing-head p {
    margin-top: 16px;
    color: #e4e7ff;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.4;
    letter-spacing: -.02em;
}

.pricing-cycle {
    display: inline-flex;
    gap: 4px;
    margin-top: 26px;
    padding: 5px;
    border: 1px solid #ffffff33;
    border-radius: 999px;
    background: #ffffff1f;
}

.pricing-cycle[hidden] { display: none; }

.pricing-cycle button {
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: none;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.pricing-cycle button[aria-pressed="true"] { color: #1b145a; background: #fff; }
.pricing-cycle button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pricing-cycle span { margin-left: 6px; padding: 3px 8px; border-radius: 999px; color: #0a6b3a; background: #d9fbe8; font-size: 13px; }

.pricing-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }

.pricing-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(26px, 2.8vw, 42px);
    border: 1px solid #fff;
    border-radius: clamp(22px, 2.4vw, 34px);
    color: var(--ink);
    background: linear-gradient(145deg, #fcfcff, #edf0ff);
    box-shadow: 0 18px 48px #080d2b44;
}

.pricing-plan[data-plan="standard"] {
    border-color: #a6a2fe;
    color: #fff;
    background: radial-gradient(ellipse at 100% 0, #72dbf492, transparent 40%),
        linear-gradient(145deg, #6348ee, #3422bd 49%, #302bc0 76%, #2547bf);
    box-shadow: inset 0 0 17px #d5c5ff36, 0 0 35px #5474ff43, 0 18px 48px #080d2b44;
}

.pricing-section.is-revealing .pricing-plan { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.pricing-section.is-revealing .pricing-plan[data-plan="standard"] { transition-delay: .12s; }
.pricing-section.is-revealed .pricing-plan { opacity: 1; transform: none; }

.plan-badge {
    position: absolute;
    top: clamp(22px, 2.4vw, 36px);
    right: clamp(22px, 2.4vw, 36px);
    padding: 6px 12px;
    border-radius: 999px;
    color: #3422bd;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
}

.pricing-plan h3 { margin: 0; font-size: clamp(28px, 2.6vw, 40px); font-weight: 740; line-height: 1.05; letter-spacing: -.045em; }
.plan-for { margin-top: 6px; font-size: 17px; opacity: .8; }

.plan-price {
    margin-top: 22px;
    font-size: clamp(46px, 4.4vw, 68px);
    font-weight: 760;
    line-height: 1;
    letter-spacing: -.055em;
}

.plan-price small { font-size: clamp(17px, 1.4vw, 21px); font-weight: 600; letter-spacing: -.02em; opacity: .85; }
.plan-note { min-height: 1.4em; margin-top: 8px; font-size: 16px; opacity: .8; }

.plan-action {
    width: 100%;
    min-height: 58px;
    margin-top: 24px;
    padding-inline: 12px;
    border-radius: 16px;
    font-size: 19px;
}

.pricing-plan[data-plan="standard"] .plan-action { color: #1b145a; background: #fff; box-shadow: 0 12px 26px #1107702e; }
.plan-soon { margin-top: 8px; font-size: 14px; text-align: center; opacity: .8; }

.plan-list-title {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #7f7faa47;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .75;
}

.plan-list { display: grid; gap: 13px; margin: 16px 0 0; padding: 0; list-style: none; }
.plan-list li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.4; }

.plan-list li::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e6e3ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23362bf0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.pricing-plan[data-plan="standard"] .plan-list li::before {
    background-color: #ffffff33;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

.plan-list .plan-fee { margin-top: 4px; padding-top: 14px; border-top: 1px dashed #7f7faa59; }
.plan-list .plan-fee::before { top: 16px; }

.pricing-example {
    margin-top: clamp(20px, 2vw, 28px);
    padding: clamp(20px, 2.2vw, 30px) clamp(22px, 2.8vw, 42px);
    border: 1px solid #ffffff2e;
    border-radius: 24px;
    background: #ffffff14;
    backdrop-filter: blur(6px);
}

.pricing-example-title { font-size: 18px; font-weight: 700; }
.pricing-example-row { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: clamp(16px, 3vw, 44px); margin-top: 12px; }
.pricing-example-row p { color: #e4e7ff; font-size: 17px; }
.pricing-example-row span { display: block; font-size: 14px; opacity: .75; }
.pricing-example-row strong { margin-right: 4px; color: #fff; font-size: 26px; letter-spacing: -.03em; }
.pricing-example-tip strong { margin-right: 0; font-size: inherit; }

.pricing-compare { margin-top: 18px; text-align: center; }

.pricing-compare summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid #ffffff55;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.pricing-compare summary::-webkit-details-marker { display: none; }
.pricing-compare summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.pricing-compare[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.pricing-compare summary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.pricing-compare-scroll { margin-top: 18px; overflow-x: auto; border-radius: 22px; }

.pricing-compare table { width: 100%; border-collapse: collapse; color: var(--ink); background: #fcfcff; font-size: 16px; text-align: left; }
.pricing-compare caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pricing-compare th, .pricing-compare td { padding: 14px 20px; border-bottom: 1px solid #e3e6f5; }
.pricing-compare thead th, .pricing-compare thead td { background: #eef0ff; font-size: 17px; text-align: center; }
.pricing-compare td { width: 22%; text-align: center; }
.pricing-compare td img { display: inline-block; vertical-align: middle; }
.pricing-compare tbody th { font-weight: 500; }
.pricing-compare tbody tr:last-child > * { border-bottom: 0; }

@media (max-width: 820px) {
    .pricing-plans { grid-template-columns: minmax(0, 1fr); }
    .pricing-example-row { grid-template-columns: 1fr 1fr; }
    .pricing-example-tip { grid-column: 1 / -1; }
    .pricing-compare th, .pricing-compare td { padding: 12px 10px; font-size: 14px; }
}

@media (max-width: 690px) {
    .pricing-layout { width: min(440px, calc(100% - 36px)); padding-top: 98px; }
    .pricing-plan { padding: 25px 22px; }
    .plan-badge { position: static; align-self: flex-start; margin-bottom: 12px; }
    .pricing-cycle button { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-section.is-revealing .pricing-plan { transition: none; }
}
