*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #faf7f2;
    color: #2c5f4a;
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.9;
    padding-top: 0;
}

::selection {
    background: #d4a85a;
    color: #2c5f4a;
}

::-moz-selection {
    background: #d4a85a;
    color: #0F1928;
}

.cover {
    min-height: 60vh;
    background: #0F1928;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 30%, rgba(180, 130, 60, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(120, 60, 20, 0.12) 0%, transparent 60%);
}

.cover-checkout {
    min-height: 40vh;
}

.cover-logo {
    position: relative;
    margin-bottom: 36px;
}

.cover-logo img {
    width: 200px;
}

.logo {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 800;
    font-size: 2.4rem;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.logo span {
    color: #d4a85a;
    font-weight: 800;
}

a.logo {
    text-decoration: none;
}

.cover h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 600;
    color: #f5ead8;
    letter-spacing: 2px;
    line-height: 1.2;
    position: relative;
    margin-bottom: 8px;
}

.cover h1 em {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: 1.15em;
    color: #d4a85a;
    display: block;
    letter-spacing: 1px;
    margin-top: 20px;
}

.section-label {
    font-family: 'Anton', 'Arial Narrow', Impact, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: #8a6028;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.cover .section-label {
    position: relative;
    color: #d4a85a;
}

.chapter-num {
    font-family: 'Anton', 'Arial Narrow', Impact, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: #8a6028;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.chapter-intro {
    font-size: 1.65rem;
    font-style: italic;
    font-weight: 600;
    color: #5a4a38;
    border-left: 3px solid #8a6028;
    padding-left: 22px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.checkout-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.checkout-card {
    background: #fdf9f4;
    border: 1px solid #d9cfc4;
    padding: 40px;
}

.checkout-card-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #0F1928;
    line-height: 1.2;
    margin-bottom: 24px;
}

.policy-box h3 {
    font-family: 'Anton', 'Arial Narrow', Impact, sans-serif;
    font-size: 0.82rem;
    letter-spacing: 2px;
    color: #7a5c30;
    text-transform: uppercase;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2d9cc;
}

.policy-box h3:first-child {
    margin-top: 0;
}

.policy-box p {
    font-size: 1.35rem;
    color: #2a1f14;
    line-height: 1.8;
    margin-bottom: 20px;
}

.policy-box a {
    color: #0F1928;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s;
}

.policy-box a:hover {
    color: #8a6028;
}

.checkout-list {
    list-style: none;
}

.checkout-list li {
    position: relative;
    font-size: 1.35rem;
    color: #2a1f14;
    line-height: 1.8;
    padding-left: 28px;
    margin-bottom: 12px;
}

.checkout-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.8rem;
    line-height: 2.7;
    color: #b4823c;
}

.security-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f0ebe2;
    border: 1px solid #d4c8b8;
    border-top: 3px solid #b4823c;
    padding: 28px 32px;
}

.security-icon {
    flex-shrink: 0;
    color: #8a6028;
    line-height: 0;
    padding-top: 4px;
}

.security-note h4 {
    font-family: 'Anton', 'Arial Narrow', Impact, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: #6e4a1a;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.security-note p {
    font-size: 1.2rem;
    color: #2a1f14;
    line-height: 1.7;
}

.checkout-summary {
    background: #0F1928;
    padding: 36px 40px;
}

.checkout-summary .section-label {
    color: #d4a85a;
    margin-bottom: 12px;
}

.checkout-summary h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #f5ead8;
    line-height: 1.3;
    margin-bottom: 20px;
}

.summary-price-block {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(212, 168, 90, 0.4);
    padding-top: 20px;
}

.summary-duration {
    font-style: italic;
    font-size: 1.2rem;
    color: #c8b49a;
}

.summary-amount {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #d4a85a;
}

.checkout-form-panel {
    background: #ffffff;
    border: 1px solid #d9cfc4;
    padding: 24px;
}

.form-height {
    min-height: 400px;
}

#mf_placeholder {
    width: 100%;
}

.checkout-back a {
    font-family: 'Anton', 'Arial Narrow', Impact, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #6e4a1a;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid #b4823c;
    padding-bottom: 2px;
    transition: color 0.25s, border-color 0.25s;
}

.checkout-back a:hover {
    color: #8a6028;
    border-color: #8a6028;
}

@media (max-width: 640px) {
    .cover {
        padding: 48px 24px;
    }

    .checkout-wrap {
        padding: 40px 20px 60px;
    }

    .checkout-card {
        padding: 28px 22px;
    }

    .checkout-card-header h2 {
        font-size: 1.6rem;
    }

    .chapter-intro {
        font-size: 1.45rem;
    }

    .policy-box p,
    .checkout-list li {
        font-size: 1.2rem;
    }

    .security-card {
        padding: 24px 22px;
    }

    .checkout-summary {
        padding: 28px 22px;
    }

    .summary-price-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .checkout-form-panel {
        padding: 12px;
    }

}
