/* Kyntlo checkout — dark unified theme */
:root {
    --bg: #07050f;
    --glass: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.09);
    --ink: #f5f3fa;
    --muted: #a49fb8;
    --pink: #f20089;
    --purple: #6d00c1;
    --hot: #ff1aa3;
    --green: #35e0a1;
    --gradient: linear-gradient(-45deg, #f20089, #6d00c1, #ff1aa3, #851ada);
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Inter', sans-serif; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@keyframes ckShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.checkout-hero { padding: 80px 0 40px; text-align: center; position: relative; }
.checkout-hero::before { content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 100vw; height: 560px; background: radial-gradient(circle, rgba(242, 0, 137, 0.12), rgba(109, 0, 193, 0.06) 45%, transparent 70%); pointer-events: none; }
.checkout-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--hot); position: relative; }
.checkout-title { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; position: relative; }
.checkout-title span { background: linear-gradient(135deg, var(--pink), #b06bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.checkout-subtitle { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; position: relative; }

.checkout-section { padding: 30px 0 100px; }

/* Billing chooser */
.billing-choice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; max-width: 860px; margin: 0 auto 40px; align-items: stretch; }
.billing-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border-radius: 22px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font: inherit; text-align: left; cursor: pointer; backdrop-filter: blur(10px); transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease; }
.billing-card:hover { transform: translateY(-4px); border-color: rgba(242, 0, 137, 0.4); }
.billing-card.is-active { border-color: transparent; background: linear-gradient(rgba(22, 14, 40, 0.96), rgba(14, 9, 28, 0.96)) padding-box, var(--gradient) border-box; border: 2px solid transparent; background-size: 100% 100%, 280% 280%; animation: ckShift 5s ease infinite; box-shadow: 0 26px 70px rgba(242, 0, 137, 0.3); }
.billing-card__badge { position: absolute; top: -14px; left: 24px; padding: 7px 16px; border-radius: 999px; background: var(--gradient); background-size: 240% 240%; animation: ckShift 3.6s ease infinite; color: #fff; font-size: 0.66rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; box-shadow: 0 12px 26px rgba(242, 0, 137, 0.4); }
.billing-card__name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.billing-card.is-active .billing-card__name { color: #fff; }
.billing-card__price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; letter-spacing: -0.04em; color: #fff; }
.billing-card__price small { font-size: 0.95rem; font-weight: 700; color: var(--muted); margin-left: 2px; }
.billing-card__price s { margin-right: 8px; font-size: 1.1rem; font-weight: 700; color: #8b8698; text-decoration: none; position: relative; }
.billing-card__price s::after { content: ''; position: absolute; left: -6%; top: 52%; width: 112%; height: 2.5px; border-radius: 2px; background: linear-gradient(90deg, var(--pink), var(--hot)); transform: rotate(-8deg); }
.billing-card__save { align-self: flex-start; padding: 5px 13px; border-radius: 999px; background: rgba(53, 224, 161, 0.1); border: 1px solid rgba(53, 224, 161, 0.4); color: var(--green); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; }
.billing-card__list { list-style: none; margin-top: 6px; display: grid; gap: 7px; }
.billing-card__list li { position: relative; padding-left: 22px; font-size: 0.88rem; color: var(--muted); }
.billing-card__list li b { color: var(--green); }
.billing-card__list li::before { content: '✦'; position: absolute; left: 0; color: var(--hot); font-size: 0.8rem; }
.billing-card.is-active .billing-card__list li { color: #cfc9e2; }

/* Grid */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.checkout-card, .payment-card { border-radius: 24px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(12px); overflow: hidden; }
.checkout-card { padding: 32px 30px; }
.order-topline { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.pill { padding: 6px 15px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); font-size: 0.76rem; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.pill--deal { border-color: rgba(53, 224, 161, 0.4); background: rgba(53, 224, 161, 0.08); color: var(--green); }
.checkout-card h2, .payment-card h2 { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.checkout-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 18px; }
.checkout-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-family: var(--font-display); }
.checkout-price .price-now { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; }
.checkout-price .price-now small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.checkout-price .price-was { position: relative; font-size: 1.2rem; font-weight: 700; color: #8b8698; }
.checkout-price .price-was::after { content: ''; position: absolute; left: -5%; top: 52%; width: 110%; height: 2.5px; border-radius: 2px; background: linear-gradient(90deg, var(--pink), var(--hot)); transform: rotate(-8deg); }
.checkout-price .price-save { align-self: center; padding: 5px 12px; border-radius: 999px; background: rgba(53, 224, 161, 0.12); border: 1px solid rgba(53, 224, 161, 0.4); color: var(--green); font-size: 0.64rem; font-weight: 850; letter-spacing: 0.08em; font-family: 'Inter', sans-serif; }
.checkout-note { color: var(--muted); font-size: 0.86rem; margin-bottom: 20px; }
.checkout-list { list-style: none; display: grid; gap: 9px; margin-bottom: 24px; }
.checkout-list li { position: relative; padding-left: 24px; font-size: 0.92rem; color: #cfc9e2; }
.checkout-list li::before { content: '✦'; position: absolute; left: 0; color: var(--hot); }
.switch-package { font-size: 0.88rem; font-weight: 700; color: var(--muted); transition: color 0.25s ease; }
.switch-package:hover { color: var(--hot); }

.payment-card__inner { padding: 30px 30px 22px; }
.payment-card__inner > p { color: var(--muted); font-size: 0.94rem; margin-bottom: 18px; }
.checkout-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 15px 24px; border-radius: 999px; background: var(--gradient); background-size: 240% 240%; animation: ckShift 4s ease infinite; color: #fff !important; font-weight: 750; font-size: 1rem; box-shadow: 0 14px 34px rgba(242, 0, 137, 0.35); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.checkout-button:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(242, 0, 137, 0.5); }
.payment-note { margin-top: 14px; font-size: 0.78rem; color: #8b8698; }
.whop-host { padding: 0 20px 22px; }
.whop-host > div { border-radius: 16px; overflow: visible; }
/* Whop renders its form in an iframe; give it room for the full form + submit button */
.whop-host iframe { display: block; width: 100% !important; height: 1240px !important; min-height: 1240px; border: 0; border-radius: 16px; background: #fff; }
.whop-fallback { margin: 0 20px 22px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .82rem; line-height: 1.6; }
/* payment column shouldn't be trapped in a short sticky box */
.payment-card { align-self: start; }
@media (max-width: 980px) { .whop-host iframe { height: 1320px !important; min-height: 1320px; } }
@media (max-width: 560px) { .whop-host { padding: 0 12px 18px; } .whop-host iframe { height: 1420px !important; min-height: 1420px; } }

@media (max-width: 980px) {
    .checkout-grid, .billing-choice { grid-template-columns: 1fr; }
    .billing-card.is-deal { order: -1; }
}
@media (max-width: 640px) {
    .checkout-hero { padding: 64px 0 26px; }
    .checkout-card { padding: 26px 20px; }
    .payment-card__inner { padding: 24px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
