/* =========================================================
   Twin Flame Attraction — supportive pages
   Loaded after landing.css, which provides the design tokens,
   base typography, and the shared .site-footer.
   Covers: brand header, legal pages, checkout.
   ========================================================= */

/* ---------------------------------------------------------
   BRAND HEADER
   --------------------------------------------------------- */
.brand-header {
    background: var(--grad-night);
    border-bottom: 1px solid rgba(255, 228, 196, 0.22);
    padding: 20px 24px;
}
.brand-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-logo .logo-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}
.header-trust {
    font-size: 13px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--pink-soft);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}
.header-trust i { color: var(--peach); }

/* ---------------------------------------------------------
   LEGAL PAGES
   --------------------------------------------------------- */
.legal-main {
    padding: 64px 24px 88px;
}
.legal-main .legal-inner {
    max-width: 760px;
    margin: 0 auto;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--rose-deep);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 30px;
}
.back-link:hover { color: var(--violet); text-decoration: underline; }

.legal-main h1 {
    font-size: 48px;
    color: var(--violet);
    line-height: 1.15;
    margin-bottom: 10px;
}
.legal-updated {
    font-size: 15px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 38px;
}
.legal-main h2 {
    font-size: 29px;
    color: var(--violet);
    margin: 42px 0 12px;
    line-height: 1.25;
}
.legal-main p,
.legal-main li {
    font-size: 19px;
    color: var(--ink-soft);
    line-height: 1.7;
}
.legal-main ul {
    padding-left: 24px;
    margin-bottom: 20px;
}
.legal-main li { margin-bottom: 10px; }
.legal-main a { color: var(--rose-deep); }

.legal-callout {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--rose);
    border-radius: 12px;
    padding: 26px 30px;
    margin: 30px 0;
    box-shadow: 0 14px 34px -22px rgba(42, 23, 64, 0.28);
}
.legal-callout p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   CHECKOUT
   Desktop: form (left) + summary (right).
   Mobile: brand → summary accordion → one-line timer → form.
   --------------------------------------------------------- */
body.checkout-body {
    background: var(--blush);
}
.checkout-main {
    padding: 0;
    background: var(--blush);
    min-height: 100vh;
}
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "brand summary"
        "form summary";
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    align-items: stretch;
}
.checkout-brand { grid-area: brand; }
.checkout-summary-col { grid-area: summary; }
.checkout-form-col { grid-area: form; }

/* --- Brand --- */
.checkout-brand {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    align-self: stretch;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    padding: 40px 40px 0 24px;
    background: var(--blush);
}
.checkout-brand span {
    display: block;
    width: 100%;
    max-width: 480px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--violet);
    -webkit-text-fill-color: var(--violet);
    background: none;
}

/* --- Payment form (left) --- */
.checkout-form-col {
    background: var(--blush);
    padding: 28px 40px 48px 24px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}
.checkout-form-col form {
    width: 100%;
    max-width: 480px;
}

/* --- Order summary (right) --- */
.checkout-summary-col {
    background: var(--grad-night);
    color: #f4ecf7;
    padding: 40px 24px 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
}
.order-summary {
    max-width: 480px;
    width: 100%;
    order: 2;
}
.order-summary-header {
    display: none;
}
.order-summary-expand-wrap {
    display: none;
}
.order-summary-more {
    display: block;
}

.checkout-timer {
    order: 1;
    max-width: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,228,196,0.35);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 26px;
}
.checkout-timer-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--peach);
    line-height: 1.35;
}
.checkout-timer-display {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    color: #fdf9ff;
    font-variant-numeric: tabular-nums;
}
.order-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 31px;
    font-weight: 700;
    color: #fdf9ff;
    line-height: 1.2;
    margin-bottom: 20px;
}
.summary-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--peach);
    margin-bottom: 14px;
}
.summary-product-img {
    margin: 0 0 22px;
}
.summary-product-img img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 22px rgba(14, 11, 29, 0.5));
}
.order-includes {
    list-style: none;
    padding: 0;
    margin: 0;
}
.order-includes--bonuses {
    margin: 0 0 24px;
}
.order-includes li {
    position: relative;
    padding-left: 30px;
    font-size: 16.5px;
    line-height: 1.5;
    color: #eddff0;
    margin-bottom: 12px;
}
.order-includes i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--peach);
    font-size: 15px;
}
.order-includes .bonus-tag {
    font-family: 'Cinzel', serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--pink);
    display: block;
}

.order-total-box {
    border-top: 1px solid rgba(249, 220, 236, 0.22);
    padding-top: 20px;
}
.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 16.5px;
    color: var(--pink-soft);
    margin-bottom: 8px;
}
.order-total-row s { color: #e9b7c7; }
.order-total-row--final {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(249, 220, 236, 0.18);
    font-size: 19px;
    color: #fdf9ff;
}
.order-total-row--final strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.order-savings {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #7a2740;
    background: linear-gradient(90deg, var(--pink-soft), rgba(243, 194, 159, 0.75));
    border-radius: 30px;
    padding: 6px 16px;
}

.checkout-testimonial {
    margin: 28px 0 0;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}
.checkout-testimonial blockquote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.5;
    color: var(--violet);
    margin-bottom: 10px;
}
.checkout-testimonial figcaption {
    font-size: 14px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--rose-deep);
}

/* --- Payment form fields --- */
.form-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 29px;
    font-weight: 700;
    color: var(--violet);
    margin-bottom: 24px;
}
.field {
    display: block;
    margin-bottom: 20px;
}
.field-label {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}
.field input {
    width: 100%;
    font-family: 'Jost', sans-serif;
    font-size: 17px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 15px 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #b3a4b8; }
.field input:focus {
    outline: none;
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(220, 117, 144, 0.16);
}
.field input.invalid {
    border-color: #c8385c;
    background: #fff7f9;
}
.field-error {
    display: block;
    font-size: 14.5px;
    color: #c8385c;
    margin-top: 6px;
    line-height: 1.4;
}

.card-group .input-wrap {
    position: relative;
    display: block;
}
.card-group .input-wrap input { padding-right: 48px; }
.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mauve);
    font-size: 19px;
}
.card-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.btn-purchase {
    width: 100%;
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(104, 18, 58, 0.4);
    background: linear-gradient(170deg, #ff8f6b 0%, #ef5f86 46%, #d23f76 100%);
    border: none;
    border-radius: 60px;
    padding: 20px 26px;
    margin-top: 6px;
    cursor: pointer;
    box-shadow:
        0 0 0 1px rgba(255, 206, 196, 0.55) inset,
        0 14px 34px -10px rgba(220, 63, 118, 0.6);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn-purchase:hover:not([disabled]) {
    transform: translateY(-2px);
    filter: saturate(1.08) brightness(1.04);
}
.btn-purchase[disabled] {
    opacity: 0.75;
    cursor: default;
}

.checkout-trust-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    padding: 0;
    margin: 20px 0 0;
}
.checkout-trust-row li {
    font-size: 15px;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.checkout-trust-row i { color: var(--rose-deep); }

.checkout-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 22px;
}
.checkout-guarantee i {
    color: var(--rose-deep);
    font-size: 22px;
    margin-top: 2px;
    flex-shrink: 0;
}
.checkout-guarantee strong {
    display: block;
    font-size: 16.5px;
    color: var(--violet);
    margin-bottom: 6px;
    line-height: 1.3;
}
.checkout-guarantee span {
    display: block;
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
}

.checkout-fineprint {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    text-align: center;
    margin: 18px 0 0;
}
.checkout-fineprint a,
.terms-link {
    color: var(--rose-deep);
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: var(--ink-soft);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
}
.modal-close:hover { color: var(--violet); }

.checkout-exit-box {
    background: #fff;
    border: 1px solid var(--line);
    max-width: 560px;
    padding: 42px 36px 36px;
}
.checkout-exit-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    color: #c8385c;
    line-height: 1.25;
    margin: 0 0 20px;
}
.checkout-exit-title u {
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.checkout-exit-body {
    font-size: 18.5px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0 0 12px;
}
.checkout-exit-emphasis {
    color: var(--ink);
}
.checkout-exit-guarantee {
    font-size: 18.5px;
    font-weight: 700;
    color: var(--violet);
    line-height: 1.5;
    margin: 18px 0 26px;
}
.checkout-exit-guarantee u {
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.checkout-exit-cta {
    margin-top: 0;
    max-width: 420px;
}

.terms-modal-box {
    max-width: 640px;
    text-align: left;
    max-height: min(86vh, 760px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 34px 30px 28px;
}
.terms-modal-box .modal-title {
    margin-bottom: 18px;
    padding-right: 28px;
}
.terms-modal-body {
    overflow-y: auto;
    padding-right: 6px;
}
.terms-modal-body h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--violet);
    margin: 22px 0 8px;
}
.terms-modal-body p {
    font-size: 16.5px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin-bottom: 12px;
}
.terms-modal-updated {
    font-size: 14.5px !important;
    color: var(--ink-soft);
    margin-bottom: 16px !important;
}

/* --- Sold-out result panel --- */
.soldout-panel[hidden],
.checkout-grid[hidden] {
    display: none !important;
}
.soldout-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--cream);
}
.soldout-card {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 48px 42px;
    text-align: center;
    box-shadow: 0 30px 64px -34px rgba(42, 23, 64, 0.4);
}
.soldout-icon {
    font-size: 40px;
    color: var(--rose-deep);
    margin-bottom: 16px;
}
.soldout-card h2 {
    font-size: 38px;
    color: var(--violet);
    line-height: 1.2;
    margin-bottom: 14px;
}
.soldout-card p {
    font-size: 18.5px;
    color: var(--ink-soft);
    line-height: 1.65;
}
.soldout-lead { font-size: 20px; }
.soldout-nocharge {
    background: var(--blush);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 22px 0;
    color: var(--ink);
}
.soldout-nocharge i { color: #2f8f63; margin-right: 8px; }
.soldout-back {
    display: inline-block;
    margin-top: 18px;
    font-size: 17px;
    font-weight: 600;
    color: var(--rose-deep);
    text-decoration: none;
}
.soldout-back:hover { text-decoration: underline; }

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 960px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "summary"
            "timer"
            "form";
        grid-template-rows: none;
        min-height: 0;
    }
    .checkout-brand {
        justify-content: flex-start;
        max-width: 560px;
        width: 100%;
        margin-inline: auto;
        padding: 22px 20px 0;
    }
    .checkout-form-col {
        justify-content: flex-start;
        max-width: 560px;
        width: 100%;
        margin-inline: auto;
        padding: 18px 20px 48px;
    }
    .checkout-summary-col {
        display: contents;
        background: none;
        padding: 0;
        color: inherit;
    }
    .order-summary {
        grid-area: summary;
        max-width: none;
        order: unset;
        margin: 12px 0 0;
        width: 100%;
        background: var(--grad-night);
        color: #f4ecf7;
        border-block: 1px solid rgba(249, 220, 236, 0.18);
        position: relative;
    }
    .order-summary-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        max-width: 560px;
        width: 100%;
        margin-inline: auto;
        box-sizing: border-box;
        padding: 16px 20px 10px;
        font-family: 'Cinzel', serif;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 3px;
        text-transform: uppercase;
        color: var(--peach);
    }
    .order-summary-header-prices {
        display: inline-flex;
        align-items: baseline;
        gap: 10px;
    }
    .order-summary-header-was {
        font-family: 'Jost', sans-serif;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
        color: #e9b7c7;
        text-decoration: line-through;
    }
    .order-summary-header-price {
        font-family: 'Jost', sans-serif;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
        color: #fdf9ff;
    }
    .order-summary-body {
        max-width: 560px;
        width: 100%;
        margin-inline: auto;
        box-sizing: border-box;
        padding: 0 20px;
    }
    .order-summary .order-heading {
        display: none;
    }
    .order-summary .summary-eyebrow {
        display: none;
    }
    .order-summary .order-includes {
        margin-bottom: 0;
    }
    .order-summary-more {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    .order-summary-more-inner {
        overflow: hidden;
    }
    .order-includes--bonuses {
        margin: 0 0 24px;
    }
    .order-summary.is-expanded .order-total-box {
        margin-bottom: 8px;
    }
    .order-summary-expand-wrap {
        display: block;
    }
    .order-summary-expand {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        max-width: 560px;
        width: 100%;
        margin-inline: auto;
        box-sizing: border-box;
        border: none;
        border-top: 1px solid rgba(249, 220, 236, 0.12);
        background: transparent;
        padding: 14px 20px 16px;
        cursor: pointer;
        font-family: 'Cinzel', serif;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 2.2px;
        text-transform: uppercase;
        color: var(--peach);
    }
    .order-summary-expand-less { display: none; }
    .order-summary.is-expanded .order-summary-expand-more { display: none; }
    .order-summary.is-expanded .order-summary-expand-less { display: inline; }
    .order-summary-expand-chevron {
        font-size: 11px;
        letter-spacing: 0;
        transition: transform 0.3s ease;
    }
    .order-summary.is-expanded .order-summary-expand-chevron {
        transform: rotate(180deg);
    }
    .checkout-timer {
        grid-area: timer;
        order: unset;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: rgba(255,255,255,0.35);
        border: none;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        padding: 14px max(20px, calc(50% - 280px));
        margin: 0;
    }
    .checkout-timer-label {
        font-size: 13.5px;
        color: var(--rose-deep);
        flex: 1;
        min-width: 0;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .checkout-timer-display {
        font-size: 28px;
        color: var(--violet);
        -webkit-text-fill-color: var(--violet);
        background: none;
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .brand-header-inner { justify-content: center; }
    .header-trust { display: none; }
    .legal-main { padding: 44px 20px 66px; }
    .legal-main h1 { font-size: 34px; }
    .legal-main h2 { font-size: 25px; }
    .legal-main p, .legal-main li { font-size: 18px; }
    .card-group-row { grid-template-columns: 1fr; }
    .checkout-exit-title { font-size: 26px; }
    .checkout-exit-box { padding: 34px 22px 28px; }
    .form-heading { font-size: 26px; }
}
