/* facekitapp.com/affiliates, in the Chunky look (docs/FLOW-NOV5.md). Stands alone: its own tokens and font, nothing
   from facekitapp.com's stylesheet. Phones first: one column and a button that stays at the bottom. On a computer the
   QR code stays beside the page instead. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/affiliates/assets/fonts/nunito.woff2) format("woff2"); }

:root {
  --paper: #F8F7F2;
  --card: #FFFFFF;
  --line: #E9E7DF;
  --ink: #14170F;
  --muted: #73766C;
  --green: #17C964;
  --green-edge: #0FA24F;
  --green-dark: #07391E;
  --mint: #E2F9EB;
  --gold: #FFC933;
  --gold-edge: #E5A400;
  --r-card: 22px;
  --r-btn: 18px;
  --r-well: 16px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --bar: calc(56px + 4px + 24px + env(safe-area-inset-bottom, 0px));
}
@supports (animation-timing-function: linear(0, 1)) {
  :root { --spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-weight: 700; font-size: 17px; line-height: 1.3; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img { display: block; }

.page { max-width: 560px; margin: 0 auto; padding: 0 20px var(--bar); }
.col { display: flex; flex-direction: column; min-width: 0; }

/* Brand */
.top { padding: max(16px, env(safe-area-inset-top, 0px)) 0 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 900; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }

/* Hero */
.hero { padding-top: 22px; }
h1 { font-size: clamp(46px, 13.4vw, 64px); font-weight: 900; line-height: 0.98; letter-spacing: -0.035em; }
.deal { position: relative; margin-top: 22px; padding: 18px 16px 16px; background: var(--green); border-radius: 28px; box-shadow: 0 6px 0 var(--green-edge); color: #fff; text-align: center; }
.deal-num { display: flex; justify-content: center; align-items: flex-start; font-size: clamp(132px, 42vw, 188px); font-weight: 1000; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; text-shadow: 0 6px 0 var(--green-edge); }
.deal-num i { font-style: normal; font-size: 0.62em; line-height: 1.5; margin-left: 0.04em; }
.deal-of { position: relative; margin-top: -0.32em; font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.deal-sales { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sale { display: flex; flex-direction: column; align-items: center; padding: 11px 6px 9px; background: var(--card); border-radius: var(--r-btn); box-shadow: 0 4px 0 var(--line); color: var(--ink); }
.sale b { font-size: 27px; font-weight: 1000; letter-spacing: -0.03em; color: var(--green-edge); font-variant-numeric: tabular-nums; }
.sale small { font-size: 15px; font-weight: 800; color: var(--muted); }
.sale:first-child { transform: rotate(-2deg); }
.sale:last-child { transform: rotate(1.5deg); }

/* Rolling 60 */
/* Wide enough for the tight digits and their edge: a column only clips digits rolling past, never the one that lands. */
.roll-col { display: inline-block; height: 1.1em; overflow: hidden; margin: 0 -0.05em; padding: 0 0.05em; }
.roll-stack { display: block; transform: translateY(0); }
.roll-stack b { display: block; height: 1.1em; line-height: 1.04em; font-weight: inherit; }
.rolled .roll-stack { transform: translateY(calc(var(--to) * -1.1em)); transition: transform 1.1s var(--spring); transition-delay: calc(0.25s + var(--i) * 0.12s); }
[data-roll] { display: inline-flex; }

/* Cards */
.card { background: var(--card); border: 2px solid var(--line); border-bottom-width: 4px; border-radius: var(--r-card); }
.things { display: grid; gap: 14px; margin-top: 30px; }
.things .card { padding: 12px 12px 18px; }
.things h2 { margin: 16px 8px 0; font-size: 26px; font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.well { display: flex; align-items: center; justify-content: center; height: 196px; border-radius: var(--r-well); overflow: hidden; }

/* Your bio, small */
.well-bio { background: var(--mint); }
.bio { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bio-pic { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--gold); box-shadow: 0 4px 0 var(--gold-edge); color: var(--ink); font-size: 32px; font-weight: 1000; }
.bio-name { margin-top: 4px; font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.bio-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--card); border-radius: 999px; box-shadow: 0 3px 0 var(--green-edge), 0 0 0 2px var(--green-edge); color: var(--green-dark); font-size: 17px; font-weight: 900; letter-spacing: -0.01em; white-space: nowrap; }

/* Your video, small */
.well-video { background: var(--green-dark); }
.video { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.video-sticker { margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; padding: 10px 26px 12px; background: var(--card); border-radius: var(--r-btn); box-shadow: 0 5px 0 var(--line); transform: rotate(-3deg); color: var(--ink); font-size: 46px; font-weight: 1000; line-height: 1; letter-spacing: -0.02em; }
.video-sticker small { margin-bottom: 4px; font-size: 15px; font-weight: 800; letter-spacing: 0; color: var(--muted); }
.video-handle { position: absolute; left: 16px; bottom: 16px; color: #fff; font-size: 17px; font-weight: 900; letter-spacing: -0.01em; }
.video-handle::after { content: ""; display: block; width: 92px; height: 7px; margin-top: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); }
.video-rail { position: absolute; right: 14px; bottom: 16px; display: grid; gap: 9px; }
.video-rail i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }

/* Payday */
.things .card-gold { display: flex; align-items: center; gap: 16px; padding: 18px 16px; background: var(--gold); border-color: var(--gold-edge); }
.card-gold h2 { margin: 0; }
.card-gold p { margin-top: 5px; font-size: 16px; font-weight: 800; color: var(--ink); }
.coin { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 50%; background: var(--gold); border: 4px solid var(--gold-edge); border-bottom-width: 10px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55); line-height: 1; }
.card-gold .coin { background: #FFD95C; }
.coin small { font-size: 13px; font-weight: 900; letter-spacing: 0.04em; }
.coin b { font-size: 36px; font-weight: 1000; letter-spacing: -0.03em; }

/* Questions */
.faq { display: grid; gap: 10px; margin-top: 30px; }
.qa { padding: 15px 18px 16px; }
.qa h3 { font-size: 19px; font-weight: 900; letter-spacing: -0.015em; }
.qa p { margin-top: 3px; font-size: 17px; font-weight: 700; color: var(--muted); }

.foot { display: flex; justify-content: center; gap: 8px; padding: 28px 0 22px; font-size: 14px; font-weight: 700; color: var(--muted); }
.foot a { text-decoration: none; }

/* The action */
.btn { display: flex; align-items: center; justify-content: center; height: 56px; border-radius: var(--r-btn); background: var(--green); box-shadow: 0 4px 0 var(--green-edge); color: #fff; font-size: 20px; font-weight: 900; letter-spacing: -0.01em; text-decoration: none; transition: transform 0.08s ease-out, box-shadow 0.08s ease-out; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--green-edge); }
.get-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 12px max(20px, calc(50vw - 260px)) calc(12px + 4px + env(safe-area-inset-bottom, 0px)); background: var(--paper); border-top: 2px solid var(--line); }
.get-qr { display: none; }

/* Computer: the QR card, beside the page on a wide window and under it on a narrow one. */
.is-computer .get-bar { display: none; }
.is-computer .page { padding-bottom: 32px; }
.is-computer .get-qr { display: block; max-width: 340px; margin: 0 auto; padding: 24px 24px 20px; text-align: center; }
.get-qr h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.025em; }
.qr { aspect-ratio: 1; margin: 18px 0; }
.qr svg { display: block; width: 100%; height: 100%; }
.get-links { display: flex; justify-content: center; gap: 8px; }
.get-links a { padding: 6px 14px; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 800; text-decoration: none; }
.get-links a:hover { color: var(--ink); }

@media (min-width: 900px) {
  .is-computer .page { max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; padding: 0 32px; }
  .is-computer .get { position: sticky; top: 32px; margin-top: 32px; }
  .is-computer .top { padding-top: 32px; }
  .is-computer h1 { font-size: 64px; }
  .is-computer .deal-num { font-size: 188px; }
  .is-computer .things { grid-template-columns: 1fr 1fr; }
  .is-computer .card-gold { grid-column: 1 / -1; }
  .is-computer .bio-link { font-size: 15px; padding: 7px 11px; }
  .is-computer .video-sticker { font-size: 40px; padding: 8px 20px 10px; }
}

/* Motion: quick springs. Without JS or with reduced motion, everything just sits there. */
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes sale-in { from { opacity: 0; scale: 0.5; } to { opacity: 1; scale: 1; } }
.moves .pop { animation: pop 0.55s var(--spring) both; animation-delay: calc(var(--i, 0) * 0.07s); }
.moves .sale { animation: sale-in 0.6s var(--spring) both; animation-delay: calc(var(--i, 0) * 0.1s + 0.25s); }
.moves .reveal { opacity: 0; }
.moves .reveal.in { opacity: 1; animation: pop 0.5s var(--spring) both; }
