/* FollowBuster: playful detective, trustworthy. Mobile-first. */
:root {
  --ink: #1b1238;
  --ink-2: #4c4468;
  --ink-3: #6b6485; /* 5.3:1 on the page background (was 4.1:1) */
  --bg: #fff6f8;
  --bg-2: #ffeaf0;
  --card: #ffffff;
  --line: #f1e1e7;
  --brand: #5b3df5;
  --brand-2: #7b61ff;
  --brand-soft: #efebff;
  --pink: #ff3d8b;
  --pink-soft: #ffe4ef;
  --spark: #ffc83d;
  --spark-soft: #fff3cf;
  --gain: #0f9f7b;
  --gain-soft: #dcf7ee;
  --loss: #e5484d;
  --loss-soft: #ffe5e5;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22, 20, 58, .06), 0 8px 24px rgba(22, 20, 58, .08);
  --shadow-lg: 0 2px 6px rgba(22, 20, 58, .06), 0 24px 60px rgba(46, 30, 140, .18);
  --font-head: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 8.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.small { font-size: .94rem; }
.tiny { font-size: .82rem; color: var(--ink-3); }
.center { text-align: center; }
.hl { background: linear-gradient(180deg, transparent 58%, var(--spark) 58%, var(--spark) 92%, transparent 92%); padding: 0 .08em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn { appearance: none; border: 0; cursor: pointer; font: 700 1.05rem/1 var(--font); display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 54px; padding: 0 26px; border-radius: 999px; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 0 #3b22c4, 0 14px 28px rgba(91, 61, 245, .35); }
.btn-primary:hover { background: #6a4dff; transform: translateY(-1px); }
.btn-primary:active { box-shadow: 0 2px 0 #3b22c4, 0 6px 14px rgba(91, 61, 245, .3); transform: translateY(3px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-soft { background: var(--brand-soft); color: var(--brand); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.shine { position: relative; overflow: hidden; }
.shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s ease-in-out infinite 1.2s; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 246, 248, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 1.2rem var(--font-head); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo svg { width: 34px; height: 34px; }
.logo b { color: var(--brand); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.link { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a.link:hover { color: var(--ink); background: var(--bg-2); }
.nav-links .hide-m { display: none !important; }
@media (min-width: 760px) { .nav-links .hide-m { display: inline-flex !important; } }

/* Cards & chips */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(22, 20, 58, .04); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.chip.gain { background: var(--gain-soft); color: var(--gain); }
.chip.loss { background: var(--loss-soft); color: var(--loss); }
.chip.spark { background: var(--spark-soft); color: #8a5a00; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 12px; }

/* Avatars */
.av { --h: 260; width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 .95rem var(--font-head); color: hsl(var(--h) 55% 30%); background: hsl(var(--h) 85% 90%); border: 2px solid #fff; box-shadow: 0 0 0 1px hsl(var(--h) 60% 85%); text-transform: uppercase; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

/* Forms */
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font: 500 1rem var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 61, 245, .15); }
.err { color: var(--loss); font-weight: 600; font-size: .9rem; min-height: 1.2em; margin: 4px 0 10px; }

/* Footer */
.footer { padding: 40px 0 56px; border-top: 1px solid var(--line); margin-top: 40px; font-size: .9rem; color: var(--ink-2); }
.footer .wrap { display: grid; gap: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.footer nav a:hover { color: var(--brand); }
.fgrid { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.fgrid .brand { grid-column: 1 / -1; }
.fgrid h4 { font: 800 .8rem var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 0 0 6px; }
.fgrid nav { display: grid; gap: 0; }
@media (min-width: 760px) { .fgrid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .fgrid .brand { grid-column: auto; } }
.hl-pink { color: var(--pink); }
.chip.pink { background: var(--pink-soft); color: #c4145e; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 100; transition: transform .35s cubic-bezier(.2,.8,.2,1.2); max-width: calc(100% - 32px); font-size: .95rem; }
.toast.show { transform: translate(-50%, 0); }

.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.spinner.dark { border-color: var(--brand-soft); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
