:root {
    --green: #08c96b;
    --green-dark: #00b85d;
    --blue: #45a8ff;
    --text: #252525;
    --muted: #858585;
    --line: #ededed;
    --bg: #f6f7f8
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: #f2f3f4
}

button, a {
    font: inherit
}

button {
    border: 0;
    cursor: pointer
}

.home-loader {
    position: fixed;
    z-index: 100;
    inset: 0;
    opacity: 1;
    transition: opacity .36s ease, visibility .36s ease
}

.home-loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.home-loader .app {
    display: grid;
    place-items: center
}

.home-loader-wrap {
    width: 100%
}

.home-loader-card {
    display: flex;
    width: min(100%, 540px);
    min-height: 440px;
    margin: auto;
    padding: 52px 48px 28px;
    align-items: center;
    flex-direction: column;
    text-align: center
}

.home-loader-icon {
    display: grid;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #13d873, #02b95f);
    box-shadow: 0 14px 25px rgba(0, 196, 100, .2);
    place-items: center;
    font-size: 76px;
    font-weight: 300;
    line-height: 1;
    animation: loader-pop .55s cubic-bezier(.2, .8, .2, 1) both
}

.home-loader-card h1 {
    margin: 34px 0 30px;
    color: #202020;
    font-size: 30px;
    line-height: 1.35
}

.home-loader-progress {
    width: min(100%, 410px);
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #eceef0
}

.home-loader-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #08c96b, #79df53);
    transition: width .48s ease
}

.home-loader-card p {
    min-height: 24px;
    margin: 26px 0 0;
    color: #777;
    font-size: 18px
}

.home-loader-card small {
    margin-top: auto;
    color: #a6a6a6;
    font-size: 15px
}

@keyframes loader-pop {
    from { opacity: 0; transform: scale(.68) }
    to { opacity: 1; transform: scale(1) }
}

@media (max-width: 520px) {
    .home-loader-card { min-height: min(72vh, 500px); padding: 44px 28px 26px; border-radius: 24px }
    .home-loader-icon { width: 104px; height: 104px; font-size: 66px }
    .home-loader-card h1 { margin: 30px 0 28px; font-size: 25px }
}

@media (prefers-reduced-motion: reduce) {
    .home-loader, .home-loader-progress span { transition: none }
    .home-loader-icon { animation: none }
}

.app {
    width: min(100%, 750px);
    min-height: 100vh;
    margin: auto;
    background: linear-gradient(#f5f6f7, #fff);
    position: relative
}

.browser-close {
    font-size: 39px;
    font-weight: 200;
    line-height: 1
}

.browser-menu {
    text-align: right;
    font-size: 30px;
    letter-spacing: 2px
}

.page-wrap {
    padding: 2px 10px 10px
}

.sheet {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06)
}

.home {
    padding: 2px 20px 20px
}

.notice {
    text-align: center;
    color: #898989;
    font-size: 14px;
    padding-top: 4px
}

.plans {
    display: grid;
    gap: 15px;
    margin: 10px 0
}

.plan {
    position: relative;
    padding: 10px;
    border: 1px solid #e1e1e1;
    border-radius: 14px;
    background: #fff;
    transition: .2s
}

.plan.selected {
    border: 2px solid var(--green);
    background: linear-gradient(135deg, #fff, #effcf5)
}

.plan.selected::after {
    content: '✅';
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 16px
}

.plan input {
    position: absolute;
    opacity: 0
}

.plan-line {
    display: flex;
    align-items: center;
    gap: 10px
}

.plan-name {
    font-size: 24px;
    font-weight: 700
}

.badge {
    color: #fff;
    padding: 4px 9px;
    border-radius: 5px;
    background: #429cff;
    font-weight: 600
}

.badge.red {
    background: #ff5d63
}

.plan-desc {
    margin: 9px 0;
    color: #777;
    font-size: 16px
}

.plan-sale {
    color: #ff555a;
    font-weight: 600
}

.price {
    margin-left: auto;
    color: var(--green);
    font-size: 26px;
    font-weight: 700;
    white-space: nowrap
}

.perks {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px
}

.perk {
    background: #effcf5;
    color: #00bd67;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 14px
}

.limited {
    position: absolute;
    right: -2px;
    top: -15px;
    color: #fff;
    background: #ff780d;
    padding: 3px 5px;
    border-radius: 8px;
    font-weight: 600
}

.refund {
    text-align: center;
    border: 1px solid #ffd6d6;
    background: #fffafa;
    color: #ff5d62;
    padding: 5px;
    border-radius: 12px;
    font-weight: 600
}

.consent {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 18px 0;
    color: #777
}

.consent input {
    width: 20px;
    height: 20px;
    accent-color: var(--green)
}

.link {
    color: #527caa;
    text-decoration: none
}

.actions {
    display: grid;
    grid-template-columns:2fr 1fr;
    gap: 14px
}

.btn {
    min-height: 58px;
    border-radius: 30px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(180deg, #0bd174, #00bc62);
    box-shadow: 0 8px 18px rgba(0, 199, 105, .16)
}

.btn.orange {
    background: linear-gradient(135deg, #ff9300, #ff5e00)
}

.version {
    text-align: center;
    color: #8b8b8b;
    margin: 16px
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.overlay.hidden, .toast.hidden {
    display: none
}

.modal {
    width: min(100%, 700px);
    max-height: 82vh;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3)
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    border-bottom: 1px solid #eee;
    font-size: 24px;
    font-weight: 700
}

.x {
    font-size: 34px;
    color: #aaa;
    background: none
}

.agreement-body {
    padding: 10px 28px 24px;
    overflow: auto;
    color: #626262;
    line-height: 1.8;
    font-size: 16px
}

.agreement-body h3 {
    color: #333;
    margin: 22px 0 8px
}

.agreement-body p {
    margin: 8px 0
}

.modal-foot {
    border-top: 1px solid #eee;
    padding: 16px 28px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    color: #777
}

.agree-btn {
    min-width: 180px;
    padding: 14px 18px;
    border-radius: 12px;
    color: #fff;
    background: var(--green);
    font-size: 19px;
    font-weight: 700
}

.agree-btn:disabled {
    background: #c8c8c8;
    cursor: not-allowed
}

.payment {
    background: #fff
}

.pay-card {
    text-align: center;
    padding: 65px 20px 36px;
    border-bottom: 1px solid #ddd
}

.pay-card h2 {
    margin: 0;
    font-size: 25px
}

.pay-price {
    font: 700 54px Georgia, serif;
    margin: 8px
}

.pay-price small {
    font-size: 29px
}

.merchant {
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
    font-size: 20px
}

.merchant span {
    color: #aaa
}

.pay-btn {
    display: block;
    width: calc(100% - 28px);
    margin: 40px 14px;
    padding: 20px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(#09d578, #00bf64);
    font-size: 25px
}

.secure {
    position: absolute;
    bottom: 70px;
    width: 100%;
    text-align: center;
    color: #aaa
}

.toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    padding: 14px 22px;
    border-radius: 9px
}

.part-card {
    padding: 20px 44px
}

.part-title {
    text-align: center;
    margin: 2px 0 16px;
    font-size: 27px
}

.section-title {
    border-left: 5px solid var(--blue);
    padding-left: 12px;
    font-size: 21px;
    margin: 14px 0 10px
}

.part-card p, .part-card li {
    font-size: 18px;
    line-height: 1.65;
    color: #555;
    margin: 6px 0
}

.chips span {
    display: inline-block;
    color: #409cf0;
    background: #eff7ff;
    border-radius: 6px;
    padding: 4px 12px;
    margin: 0 5px
}

.promise {
    border-left: 4px solid var(--blue);
    background: #f2f8ff;
    padding: 10px 18px;
    border-radius: 8px;
    color: #00c988;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7
}

.reward-list {
    list-style: none;
    padding-left: 28px
}

.reward-list li:before {
    content: '•';
    color: var(--blue);
    margin-right: 15px
}

.blue {
    color: #3fa3fa;
    font-weight: 700
}

.green {
    color: #00c889;
    font-weight: 700
}

.part-btn {
    width: 100%;
    border-radius: 12px;
    padding: 14px;
    background: linear-gradient(#4bb0ff, #3b99ec);
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(54, 151, 238, .23)
}

.task {
    display: none
}

.task.active, .intro.active {
    display: block
}

.intro:not(.active) {
    display: none
}

.task-steps {
    padding-left: 42px
}

.task-steps li {
    padding: 5px
}

.unlock {
    text-align: center;
    color: #00c889;
    font-size: 18px;
    font-weight: 700;
    margin: 10px
}

.qr-modal {
    width: min(100%, 520px);
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 22px
}

.qr-modal h2 {
    font-size: 26px
}

.qr {
    width: 250px;
    max-width: 80%;
    aspect-ratio: 1;
    border: 12px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    margin: 10px auto 25px;
    display: block
}

.qr-close {
    width: 100%;
    background: #7d7d7d;
    color: #fff;
    padding: 16px;
    border-radius: 10px
}

@media (max-width: 520px) {
    .page-wrap {
        padding: 18px 14px
    }

    .home {
        padding: 18px 14px
    }

    .plan {
        padding: 10px
    }

    .plan-name {
        font-size: 20px
    }

    .price {
        font-size: 22px
    }

    .actions {
        grid-template-columns:1.7fr 1fr
    }

    .btn {
        font-size: 18px
    }

    .part-card {
        padding: 16px 18px
    }

    .modal-foot {
        padding: 12px 18px;
        font-size: 14px
    }

    .agree-btn {
        min-width: 145px
    }

    .browser-bar {
        height: 78px
    }

    .secure {
        bottom: 35px
    }
}
