:root {
    --ink: #17201f;
    --muted: #5f6f6d;
    --line: rgba(25, 45, 42, .14);
    --paper: #fbfaf6;
    --mist: #eef5f2;
    --green: #1c806d;
    --green-dark: #0f5f51;
    --gold: #d89f3a;
    --coral: #d96d4e;
    --shadow: 0 24px 80px rgba(18, 38, 35, .16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(28, 128, 109, .06), transparent 38%),
        linear-gradient(315deg, rgba(216, 159, 58, .12), transparent 30%),
        var(--paper);
}

.hero {
    position: relative;
    min-height: min(760px, 94vh);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 32px clamp(20px, 5vw, 72px) 72px;
    isolation: isolate;
}

.hero__media,
.hero__shade {
    position: absolute;
    inset: 0;
}

.hero__media {
    z-index: -2;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.hero__shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 30, 27, .86) 0%, rgba(7, 30, 27, .62) 42%, rgba(7, 30, 27, .24) 100%),
        linear-gradient(0deg, rgba(7, 30, 27, .84) 0%, rgba(7, 30, 27, .05) 48%);
}

.hero__content {
    width: min(780px, 100%);
    color: #fffdf7;
    animation: rise .65s ease both;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #f8d891;
    font-size: 15px;
    font-weight: 800;
}

.brand-mark::before {
    content: "";
    width: 34px;
    height: 2px;
    background: currentColor;
}

.hero h1 {
    margin: 0;
    max-width: 820px;
    font-family: Georgia, "Times New Roman", "Songti SC", serif;
    font-size: clamp(44px, 8vw, 92px);
    line-height: .98;
    font-weight: 700;
    letter-spacing: 0;
}

.hero p {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 253, 247, .88);
    font-size: clamp(17px, 2vw, 22px);
}

.hero__actions,
.success-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary,
.btn-submit {
    color: #fff;
    background: var(--green);
    box-shadow: 0 14px 36px rgba(28, 128, 109, .28);
}

.btn-primary:hover,
.btn-submit:hover {
    background: var(--green-dark);
}

.btn-ghost {
    color: #fffdf7;
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
}

.btn-line,
.btn-ghost-dark {
    color: var(--green-dark);
    border-color: rgba(28, 128, 109, .32);
    background: rgba(255, 255, 255, .64);
}

.strip {
    width: min(1120px, calc(100% - 40px));
    margin: -42px auto 0;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fffefb;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.strip__item {
    padding: 23px 28px;
    border-right: 1px solid var(--line);
}

.strip__item:last-child {
    border-right: 0;
}

.strip__item span,
.package small,
.fine-print,
.summary-card dt {
    color: var(--muted);
}

.strip__item strong {
    display: block;
    margin-top: 4px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}

.ref-banner {
    width: min(1120px, calc(100% - 40px));
    margin: 24px auto 0;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    background: #0f5f51;
    color: #fff;
    border-radius: 8px;
}

.ref-banner span {
    color: rgba(255, 255, 255, .72);
}

.ref-banner strong {
    display: block;
    font-size: 22px;
}

.pill {
    display: inline-flex;
    padding: 8px 12px;
    color: #fff8df !important;
    background: rgba(216, 159, 58, .26);
    border: 1px solid rgba(248, 216, 145, .4);
    border-radius: 999px;
    white-space: nowrap;
}

.section {
    width: min(1120px, calc(100% - 40px));
    margin: 88px auto;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: 0;
}

.lead {
    margin: 24px 0 0;
    color: #334541;
    font-size: 18px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.feature {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    background: #fffefb;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(25, 45, 42, .08);
}

.feature span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, transparent 42%, #fff 43% 56%, transparent 57%),
        var(--gold);
}

.feature strong {
    font-size: 20px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 26px;
}

.section-head > p {
    max-width: 380px;
    margin: 0;
    color: var(--muted);
}

.packages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.package,
.signup-card,
.payment-box,
.share-card,
.summary-card {
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fffefb;
    box-shadow: 0 18px 50px rgba(25, 45, 42, .08);
}

.package {
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.package.is-selected {
    border-color: rgba(28, 128, 109, .48);
    box-shadow: 0 22px 60px rgba(28, 128, 109, .16);
}

.package__top span {
    display: inline-flex;
    padding: 4px 9px;
    margin-bottom: 12px;
    border-radius: 999px;
    color: #7a4d03;
    background: #fff1ca;
    font-size: 12px;
    font-weight: 900;
}

.package__top strong {
    display: block;
    font-size: 24px;
}

.package p {
    margin: 18px 0;
    color: #405550;
}

.package__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.package__price strong {
    color: var(--green-dark);
    font-size: 32px;
    line-height: 1;
}

.package__price del {
    color: #a1aaa6;
}

.package ul {
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
}

.package li {
    position: relative;
    padding-left: 20px;
    margin: 8px 0;
    color: #314541;
}

.package li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.package .btn {
    margin-top: auto;
}

.signup-wrap {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(360px, 1fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 56px;
}

.signup-copy > p:not(.eyebrow) {
    color: #425653;
    font-size: 17px;
}

.payment-box {
    margin-top: 24px;
    padding: 22px;
    background: var(--mist);
}

.payment-box strong {
    display: block;
    font-size: 20px;
}

.payment-box p {
    margin: 10px 0 14px;
    color: #344844;
}

.payment-box img {
    display: block;
    width: 150px;
    max-width: 100%;
    border-radius: 8px;
    background: #fff;
}

.payment-box span {
    display: block;
    margin-top: 12px;
    color: var(--green-dark);
    font-weight: 800;
}

.signup-card {
    padding: clamp(22px, 4vw, 34px);
}

.signup-card label,
.share-card label {
    display: block;
    margin-bottom: 16px;
}

.signup-card label span,
.share-card label,
.success-grid h2 {
    display: block;
    margin-bottom: 8px;
    color: #243633;
    font-weight: 900;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(28, 56, 52, .18);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(28, 128, 109, .78);
    box-shadow: 0 0 0 4px rgba(28, 128, 109, .12);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.btn-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 6px;
    border: 0;
}

.fine-print {
    margin: 14px 0 0;
    font-size: 13px;
}

.alert {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
}

.alert p {
    margin: 0;
}

.alert-error {
    color: #7a1d14;
    background: #ffe6dd;
    border: 1px solid #fac5b5;
}

.success-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(28, 128, 109, .12), transparent 36%),
        #f8f7f0;
}

.success-shell {
    width: min(1050px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 64px;
}

.success-hero {
    padding: clamp(30px, 7vw, 70px) 0 36px;
    max-width: 820px;
}

.success-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff;
    background: var(--green);
    font-weight: 900;
}

.success-hero h1 {
    margin: 14px 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: 0;
}

.success-hero p {
    color: var(--muted);
    font-size: 18px;
}

.success-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 18px;
}

.share-card,
.summary-card {
    padding: 24px;
}

.share-card {
    grid-row: span 2;
}

.poster-preview {
    display: block;
    width: min(100%, 430px);
    margin: 0 auto 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: 0 18px 52px rgba(25, 45, 42, .18);
}

.poster-tip {
    margin: 0 0 22px;
    color: #405550;
    font-weight: 800;
}

.copy-row {
    display: flex;
    gap: 10px;
}

.copy-row input {
    min-width: 0;
}

.qr-box {
    margin-top: 24px;
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: var(--mist);
    border-radius: 8px;
}

.qr-box img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background: #fff;
}

.qr-box p {
    margin: 0;
    color: #405550;
}

.summary-card h2 {
    font-size: 24px;
}

.summary-card dl {
    margin: 0;
}

.summary-card div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.summary-card div:last-child {
    border-bottom: 0;
}

.summary-card dd,
.summary-card dt {
    margin: 0;
}

.summary-card dd {
    font-weight: 900;
    text-align: right;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 860px) {
    .hero {
        min-height: 720px;
        padding: 24px 20px 58px;
    }

    .strip,
    .packages,
    .two-col,
    .signup-wrap,
    .success-grid {
        grid-template-columns: 1fr;
    }

    .strip__item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .strip__item:last-child {
        border-bottom: 0;
    }

    .section {
        margin: 64px auto;
    }

    .section-head {
        display: block;
    }

    .section-head > p {
        margin-top: 12px;
    }

    .share-card {
        grid-row: auto;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero__actions,
    .success-actions,
    .copy-row,
    .qr-box,
    .ref-banner {
        flex-direction: column;
    }

    .btn,
    .copy-row .btn {
        width: 100%;
    }

    .form-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .summary-card div {
        display: block;
    }

    .summary-card dd {
        text-align: left;
    }
}
