/* Public affiliate pages: /affiliates (join) and /affiliate/{token} (creator portal). Soft, airy, gently animated. */
:root { --ink: #14113a; --ink-2: #3d3a63; --muted: #6b6f88; --line: #ece8f6; --v: #6c2bf2; --p: #e9388e; --o: #ff7a45; --bg: #fbfaff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.blob { position: fixed; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; pointer-events: none; }
.blob--1 { width: 460px; height: 460px; background: #dccbff; top: -160px; right: -120px; }
.blob--2 { width: 380px; height: 380px; background: #ffd3e6; top: 40%; left: -180px; animation-delay: -7s; }
.blob--3 { width: 320px; height: 320px; background: #ffe2cc; bottom: -140px; right: 20%; animation-delay: -12s; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.logo i { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(140deg, var(--v), var(--p) 70%, var(--o)); box-shadow: 0 10px 20px -10px var(--v); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; font-size: 15px; border: 0; border-radius: 14px; padding: 13px 22px; cursor: pointer; text-decoration: none;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn--main { color: #fff; background: linear-gradient(120deg, var(--v), #a524e0 50%, var(--p)); background-size: 180% 100%; box-shadow: 0 16px 30px -16px var(--v); }
.btn--main:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 22px 36px -16px var(--p); }
.btn--soft { background: #fff; color: var(--v); border: 1px solid var(--line); box-shadow: 0 10px 22px -18px rgba(40,20,100,.5); }
.btn--soft:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 14px; font-size: 13.5px; border-radius: 11px; }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 50px 0 40px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 800; color: var(--v); background: #fff; border: 1px solid #e8defd; box-shadow: 0 8px 18px -14px var(--v); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: ping 2s infinite; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.03em; margin: 18px 0 16px; }
h1 em { font-style: normal; background: linear-gradient(110deg, var(--v), var(--p) 60%, var(--o)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0 0 26px; max-width: 540px; }
.hero__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.trust b { color: var(--ink); }

.card { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 30px 60px -44px rgba(60,30,140,.55); }
.calc { padding: 26px; display: grid; gap: 18px; animation: up .7s cubic-bezier(.2,.8,.2,1) both .15s; }
.calc h3 { margin: 0; font-size: 17px; }
.calc label { display: grid; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.calc label span { display: flex; justify-content: space-between; } .calc label span b { color: var(--v); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--v) var(--f, 30%), #ece8f6 var(--f, 30%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--v); box-shadow: 0 6px 14px -4px var(--v); cursor: grab; transition: transform .15s; }
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--v); cursor: grab; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1; font: inherit; font-weight: 800; font-size: 13.5px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.seg button.on { color: #fff; border-color: transparent; background: linear-gradient(130deg, var(--v), #a524e0); box-shadow: 0 10px 18px -12px var(--v); }
.earn { border-radius: 20px; padding: 20px; color: #fff; background: linear-gradient(130deg, #5b21e6, #a524e0 55%, var(--p)); display: grid; gap: 4px; position: relative; overflow: hidden; }
.earn::after { content: ""; position: absolute; width: 200px; height: 200px; right: -60px; top: -80px; border-radius: 50%; background: rgba(255,255,255,.15); }
.earn small { opacity: .85; font-weight: 600; } .earn b { font-size: 40px; letter-spacing: -.03em; line-height: 1.1; } .earn span { font-size: 13px; opacity: .85; }

.sec { padding: 46px 0; }
.sec h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; margin: 0 0 10px; text-align: center; }
.sec > .wrap > p.sub { text-align: center; color: var(--muted); margin: 0 auto 30px; max-width: 560px; font-size: 16px; line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 24px; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.step:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -40px rgba(108,43,242,.6); }
.step i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; font-style: normal; font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 14px;
  background: linear-gradient(140deg, var(--v), var(--p)); box-shadow: 0 12px 22px -12px var(--v); }
.step:nth-child(2) i { background: linear-gradient(140deg, #a524e0, var(--o)); } .step:nth-child(3) i { background: linear-gradient(140deg, #10b981, #0a84ff); }
.step h3 { margin: 0 0 6px; font-size: 18px; } .step p { margin: 0; color: var(--ink-2); line-height: 1.6; font-size: 14.5px; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.perk { padding: 20px; display: flex; gap: 14px; align-items: flex-start; transition: transform .3s; }
.perk:hover { transform: translateY(-4px); }
.perk span { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; background: #f3eeff; }
.perk b { display: block; margin-bottom: 3px; } .perk p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

.join { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; padding: 32px; align-items: start; }
.join h2 { text-align: left; }
.join ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.join li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15px; }
.join li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: #22c55e; }
form { display: grid; gap: 12px; }
.f { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.f input, .f select, .f textarea { font: inherit; font-size: 15px; font-weight: 500; padding: 13px 14px; border-radius: 14px; border: 1px solid #e3ddf3; background: #fff; color: var(--ink); transition: border .2s, box-shadow .2s; width: 100%; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: #b9a2fb; box-shadow: 0 0 0 4px rgba(108,43,242,.12); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: 14.5px; animation: up .4s both; }
.msg--ok { background: #e7f8ee; color: #136c3a; } .msg--err { background: #fdecec; color: #b42318; }
.done { text-align: center; padding: 30px 10px; display: grid; justify-items: center; gap: 10px; animation: up .5s both; }
.done i { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 32px; color: #fff; background: linear-gradient(140deg, #22c55e, #10b981); box-shadow: 0 16px 30px -14px #10b981; animation: pop .6s cubic-bezier(.2,.9,.25,1.3) both; }
.done h3 { margin: 6px 0 0; font-size: 22px; } .done p { margin: 0; color: var(--muted); }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { padding: 4px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: box-shadow .25s; }
.faq details[open] { box-shadow: 0 20px 40px -32px rgba(108,43,242,.6); }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--v); transition: transform .25s; } .faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.6; }
.foot { padding: 30px 0 40px; text-align: center; color: var(--muted); font-size: 13px; }

/* portal */
.pt-hero { padding: 30px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; margin-top: 10px; animation: up .6s both; }
.pt-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 6px; }
.pt-hero p { margin: 0; color: var(--muted); }
.copy { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; background: #f7f4ff; border: 1px solid #ebe3fd; margin-top: 10px; }
.copy small { font-weight: 800; color: var(--muted); font-size: 12px; width: 60px; flex: none; }
.copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; color: var(--v); font-family: inherit; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.stat { padding: 20px; animation: up .6s both; transition: transform .3s; } .stat:hover { transform: translateY(-4px); }
.stat:nth-child(2) { animation-delay: .06s; } .stat:nth-child(3) { animation-delay: .12s; } .stat:nth-child(4) { animation-delay: .18s; }
.stat small { display: block; font-weight: 700; color: var(--muted); font-size: 13px; } .stat b { display: block; font-size: 30px; letter-spacing: -.02em; margin: 4px 0 2px; } .stat span { font-size: 12.5px; color: var(--muted); }
.stat--hot { color: #fff; background: linear-gradient(140deg, var(--o), var(--p)); border: 0; } .stat--hot small, .stat--hot span { color: rgba(255,255,255,.88); }
.pt-two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.pt-box { padding: 22px; } .pt-box h3 { margin: 0 0 12px; font-size: 17px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-size: 14px; }
.row:nth-child(even) { background: #faf8ff; } .row small { display: block; color: var(--muted); font-size: 12px; }
.tag { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #f1f2f6; color: #64748b; white-space: nowrap; }
.tag--due { background: #ffe9dc; color: #c2410c; } .tag--paid { background: #e6f6ec; color: #15803d; } .tag--pending { background: #fff4dc; color: #a15c00; } .tag--lead { background: #eaf3ff; color: #1d4ed8; }
.empty { color: var(--muted); font-size: 14px; padding: 10px 0; }
.kit { display: grid; gap: 10px; }
.kit div { padding: 14px; border-radius: 14px; background: #faf8ff; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.kit b { display: block; color: var(--ink); margin-bottom: 4px; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; transition: all .3s cubic-bezier(.2,.8,.2,1); pointer-events: none; z-index: 10; }
.toast.on { opacity: 1; transform: translateX(-50%); }

.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.1); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
@media (max-width: 860px) { .hero, .join, .pt-hero, .pt-two { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } .hero { padding-top: 24px; } .join { padding: 22px; } }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } .stat b { font-size: 24px; } .earn b { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } }

.pt-hero > *, .hero > *, .join > *, .pt-two > * { min-width: 0; }
@media (max-width: 860px) { .hero, .join, .pt-hero, .pt-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .copy { flex-wrap: wrap; } .copy code { flex-basis: calc(100% - 80px); } .copy .btn { margin-left: auto; } .pt-hero { padding: 20px; } }

.pt-tier { display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 18px; animation: up .6s both .2s; }
.pt-tier__badge { flex: none; width: 86px; height: 86px; border-radius: 26px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; text-align: center;
  background: linear-gradient(140deg, #a78bfa, #6c2bf2); box-shadow: 0 16px 30px -16px #6c2bf2; animation: pop .7s cubic-bezier(.2,.9,.25,1.3) both .3s; }
.pt-tier__badge--silver { background: linear-gradient(140deg, #e2e8f0, #94a3b8); color: #1e293b; }
.pt-tier__badge--gold { background: linear-gradient(140deg, #fde68a, #f59e0b); color: #5b3a00; }
.pt-tier__badge--platinum { background: linear-gradient(140deg, #c7d2fe, #6366f1 60%, #e9388e); }
.pt-tier__body { flex: 1; display: grid; gap: 8px; } .pt-tier__body small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.pt-bar { height: 10px; border-radius: 99px; background: #efeaf9; overflow: hidden; }
.pt-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--v), var(--p), var(--o)); transform-origin: left; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both .4s; }
@keyframes grow { from { transform: scaleX(0); } }
@media (max-width: 480px) { .pt-tier { flex-direction: column; text-align: center; } }
