@font-face { font-family: Nunito; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/nunito-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/nunito-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/nunito-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/nunito-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-style: normal; font-weight: 900; font-display: swap; src: url(/fonts/nunito-latin-900-normal.woff2) format('woff2'); }

:root {
  --bg: #F4F2F8; --card: #FFFFFF; --ink: #17131F; --ink2: #3D3749; --muted: #6B6580;
  --line: #DDD8EA; --line2: #EFECF5; --soft: #F8F7FB; --tint: #F3EEFE; --tint-ink: #4A22B0;
  --purple: #5E2CC4; --purple-dark: #3A1A99; --lilac: #E6DDFB; --mint: #E6F8F3; --mint-ink: #11735C;
  --dark: linear-gradient(135deg, #3B3842 0%, #24222A 55%, #17151B 100%);
  --hero: linear-gradient(160deg, #6A33D1 0%, #5A2BC9 45%, #4A22B0 100%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Nunito, system-ui, -apple-system, sans-serif; line-height: 1.4; }
a { color: var(--purple); }
a:hover { color: var(--purple-dark); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #B9A6EC; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.wordmark { font-weight: 900; font-size: 25px; line-height: 1; letter-spacing: -0.5px; color: var(--purple); }

/* app shell (mobile-first pages) */
.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.stack { padding: 6px 16px 40px; display: flex; flex-direction: column; gap: 14px; }

.card { border-radius: 22px; background: var(--card); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.card.tint { background: var(--tint); }
.dark { position: relative; overflow: hidden; border-radius: 22px; padding: 20px; background: var(--dark); color: #fff; box-shadow: 0 14px 30px rgba(23,19,31,0.22); }
.dark .wm { position: absolute; width: 190px; height: 190px; opacity: 0.07; pointer-events: none; }
.dark > *:not(.wm) { position: relative; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin: 0; }
.dark .eyebrow { color: #C9C5D3; }

.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #8A5CF0, #5E2CC4); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; color: #fff; text-decoration: none; flex-shrink: 0; }
.avatar.sm { width: 36px; height: 36px; font-size: 13px; background: #ECE8F5; color: var(--purple); }

/* buttons */
.btn { height: 54px; border: 0; border-radius: 16px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 16px; text-decoration: none; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 10px 24px rgba(94,44,196,0.3); }
.btn-primary:hover { background: #5226B0; color: #fff; }
.btn-primary:disabled { background: #B6A8DA; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 800; }
.btn-ghost:hover { color: var(--ink); border-color: #C6BEDC; }
.btn-dark { background: #17151B; color: #fff; }
.btn-dark:hover { color: #fff; background: #000; }
.btn-soft { height: 40px; padding: 0 16px; border-radius: 12px; background: var(--tint); color: var(--tint-ink); font-size: 14px; }
.btn-link { background: none; border: 0; color: var(--purple); font-weight: 800; font-size: 14px; min-height: 44px; padding: 0 8px; }
.btn-big { height: 62px; flex-direction: column; gap: 2px; }
.btn-big small { font-size: 12px; font-weight: 700; color: var(--lilac); }
.w100 { width: 100%; }
.pill { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--purple); }

/* forms */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.input { height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--soft); padding: 0 14px; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); width: 100%; }
textarea.input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: #8F8AA3; }
.input:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: transparent; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--purple); flex-shrink: 0; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.err { font-size: 14px; font-weight: 700; color: #B42318; margin: 0; }
.ok { font-size: 14px; font-weight: 700; color: var(--mint-ink); margin: 0; }

/* amount picker */
.amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amt { height: 62px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; font-weight: 900; }
.amt b { font-size: 20px; line-height: 1; }
.amt span { font-size: 11px; font-weight: 700; color: var(--muted); }
.amt[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.amt[aria-pressed="true"] span { color: var(--lilac); }
.rain { margin-top: 8px; width: 100%; height: 48px; border-radius: 14px; border: 1px dashed #B9A6EC; background: var(--tint); color: var(--tint-ink); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 800; }
.rain[aria-pressed="true"] { border: 1px solid var(--purple); background: var(--purple); color: #fff; }

/* level bar */
.bar { height: 8px; border-radius: 999px; background: #ECE8F5; overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; background: var(--purple); transition: width .6s ease; }

/* lists */
.row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.row:last-child { border-bottom: 0; }
.row .who { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.row .who b { font-size: 14px; font-weight: 800; }
.row .who span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.row .amt-r { font-weight: 900; font-size: 17px; color: var(--purple); }

details.faq { border-radius: 16px; background: #fff; padding: 14px 16px; }
details.faq summary { cursor: pointer; font-size: 15px; font-weight: 800; min-height: 24px; }
details.faq p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink2); }

/* timeline */
.tl { display: flex; gap: 14px; }
.tl .rail { display: flex; flex-direction: column; align-items: center; width: 14px; }
.tl .dot { width: 14px; height: 14px; margin-top: 8px; border-radius: 50%; flex-shrink: 0; background: #fff; border: 2px solid #CFC8E0; }
.tl .line { width: 2px; flex: 1; background: #E3DFEC; }
.tl.done .dot { background: var(--purple); border: 0; }
.tl.done .line { background: var(--purple); }
.tl.here .dot { background: var(--purple); border: 0; box-shadow: 0 0 0 5px var(--lilac); }
.tl:last-child .line { background: transparent; }
.tl .body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 6px 0 16px; }
.tl .body > div { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.tl .nm { font-weight: 900; font-size: 16px; color: var(--muted); }
.tl.done .nm { color: var(--ink); }
.tl.here .nm { color: var(--purple); }
.tl .note { font-size: 13px; color: var(--muted); }
.tl .min { font-size: 13px; font-weight: 800; color: var(--ink2); }

/* overlay */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; text-align: center; animation: pop .35s ease; }
.overlay[hidden] { display: none; }
.overlay .badge { width: 92px; height: 92px; border-radius: 28px; background: var(--purple); box-shadow: 0 16px 34px rgba(94,44,196,0.35); display: flex; align-items: center; justify-content: center; }
.overlay .badge img { width: 56px; height: 56px; }
.overlay .big { font-weight: 900; font-size: 64px; line-height: 1; color: var(--purple); }
.overlay .actions { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.levelup { border-radius: 999px; background: var(--mint); padding: 8px 16px; font-size: 13px; font-weight: 800; letter-spacing: 0.5px; color: var(--mint-ink); text-transform: uppercase; }
@keyframes pop { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #17151B; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 800; font-size: 14px; z-index: 60; }
.demo-bar { background: #FFF4D6; color: #6B4E00; text-align: center; font-size: 13px; font-weight: 800; padding: 8px 12px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.spacer { flex: 1; }

/* website */
.site-header { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 800; }
.site-header nav a { color: var(--ink2); text-decoration: none; }
.site-header nav a.btn { color: #fff; height: 44px; padding: 0 20px; border-radius: 14px; }
.pattern { background-image: url(/assets/pattern.png); background-size: 128px 128px; background-repeat: repeat; }
.hero { max-width: 1200px; margin: 0 auto; position: relative; overflow: hidden; border-radius: 32px; background: var(--hero); color: #fff; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 64px 56px 0; }
.hero h1 { margin: 0; font-weight: 900; font-size: clamp(48px, 7vw, 84px); line-height: 0.98; letter-spacing: -1px; }
.claim { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.claim label { flex: 1 1 260px; display: flex; align-items: center; height: 58px; border-radius: 16px; background: #fff; padding: 0 16px; color: var(--muted); font-size: 16px; font-weight: 800; }
.claim input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 800; color: var(--ink); }
.section { max-width: 1200px; margin: 0 auto; padding: 80px 24px 24px; display: flex; flex-direction: column; gap: 28px; }
.section h2 { margin: 0; font-weight: 900; font-size: clamp(32px, 4vw, 46px); line-height: 1.05; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: var(--purple); text-transform: uppercase; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tile { border-radius: 24px; background: #fff; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { margin: 6px 0 0; font-weight: 900; font-size: 22px; }
.tile p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink2); }
.num { width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--purple); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; }
.soon { align-self: flex-start; font-size: 11px; font-weight: 900; letter-spacing: 1px; color: var(--tint-ink); background: var(--tint); border-radius: 999px; padding: 4px 10px; }
.site-footer { max-width: 1200px; margin: 64px auto 0; padding: 48px 24px 40px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; border-top: 1px solid #E3DFEC; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; font-weight: 700; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.legal { max-width: 760px; margin: 0 auto; padding: 24px 24px 64px; }
.legal h1 { font-weight: 900; font-size: 40px; margin: 12px 0 8px; }
.legal h2 { font-weight: 900; font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; color: var(--ink2); }
@media (max-width: 640px) {
  .hero-inner { padding: 40px 24px 0; }
  .site-header nav { gap: 16px; }
  .site-header nav .hide-sm { display: none; }
}
