/* The affiliate page (31 Oct 2026, content/en/pages/affiliates.php): the facts under the hero (.aff-facts) and the
   earnings calculator (.afc, kb_b_affcalc() in _inc/kb.php, assets/js/affiliates.js). In the site's own tokens. */

/* four facts under the hero's buttons */
body.ft .lp .aff-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(880px, 100%); margin: 40px auto 0; padding: 0; list-style: none; }
body.ft .lp .aff-facts li { display: grid; gap: 4px; justify-items: center; padding: 18px 12px 16px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow-tile); text-align: center; }
body.ft .lp .aff-facts b { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.1; font-weight: 300; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
body.ft .lp .aff-facts span { font-size: .8125rem; line-height: 1.35; color: var(--muted); text-wrap: balance; }
@media (max-width: 700px) { body.ft .lp .aff-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; } }

/* the calculator */
body.ft .lp .afc { --afc-r: 24px; padding: clamp(24px, 3.6vw, 48px); border-radius: var(--afc-r); background: var(--card); box-shadow: var(--shadow-tile); scroll-margin-top: calc(var(--header-h, 68px) + 16px); }
body.ft .lp .afc-head { display: grid; gap: 10px; max-width: 640px; margin-bottom: clamp(24px, 3vw, 36px); }
body.ft .lp .afc-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .875rem; font-weight: 500; color: var(--violet-ink); }
body.ft .lp .afc-kicker .ic { width: 18px; height: 18px; }
body.ft .lp .afc-h { margin: 0; font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem); line-height: 1.12; font-weight: 400; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
body.ft .lp .afc-lead { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--text-soft); text-wrap: pretty; }
body.ft .lp .afc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
@media (max-width: 860px) { body.ft .lp .afc-grid { grid-template-columns: minmax(0, 1fr); } }

body.ft .lp .afc-form { display: grid; gap: 26px; align-content: start; margin: 0; padding-top: 4px; }
body.ft .lp .afc-row { display: grid; gap: 12px; }
body.ft .lp .afc-lab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: .9375rem; line-height: 1.4; font-weight: 500; color: var(--ink); }
body.ft .lp .afc-lab label, body.ft .lp .afc-lab > span { margin: 0; font: inherit; color: inherit; }
body.ft .lp .afc-lab output { flex: none; min-width: 3.5em; padding: 3px 10px; border-radius: var(--r-pill); background: var(--violet-soft); color: var(--violet-ink); font-size: .875rem; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
body.ft .lp .afc-seg { justify-self: start; }
body.ft .lp .afc-seg > button { height: 36px; padding: 0 16px; font-size: .9375rem; }
body.ft .lp .afc-seg > button b { font-weight: 600; }

/* sliders: a violet fill up to the thumb (--p, set by affiliates.js) */
body.ft .lp .afc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; margin: 0; padding: 0; background: transparent; cursor: pointer; --p: 50%; }
body.ft .lp .afc-range:focus { outline: none; }
body.ft .lp .afc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--violet) var(--p), rgb(31 26 46 / .1) var(--p)); }
body.ft .lp .afc-range::-moz-range-track { height: 6px; border-radius: 99px; background: rgb(31 26 46 / .1); }
body.ft .lp .afc-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--violet); }
body.ft .lp .afc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(24 21 31 / .12), 0 2px 6px rgb(24 21 31 / .18); transition: box-shadow var(--d-fast) var(--ease); }
body.ft .lp .afc-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(24 21 31 / .12), 0 2px 6px rgb(24 21 31 / .18); }
body.ft .lp .afc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgb(127 86 217 / .28), 0 2px 6px rgb(24 21 31 / .18); }
body.ft .lp .afc-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgb(127 86 217 / .28), 0 2px 6px rgb(24 21 31 / .18); }

/* the results, on the night card */
body.ft .lp .afc-out { display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 34px); border-radius: 20px; color: var(--night-text, #f4f1fa);
  background: radial-gradient(80% 60% at 100% 0%, rgb(127 86 217 / .42), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgb(250 190 160 / .12), transparent 70%), var(--night); }
body.ft .lp .afc-out-k { margin: 0; font-size: .875rem; font-weight: 500; color: #c9b6f5; }
body.ft .lp .afc-out-k2 { margin-top: 26px; }
body.ft .lp .afc-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; }
body.ft .lp .afc-big [data-o] { font-size: clamp(3rem, 2.2rem + 2.6vw, 4.25rem); line-height: 1; font-weight: 300; letter-spacing: -.05em; color: #fff; font-variant-numeric: tabular-nums; }
body.ft .lp .afc-unit { font-size: 1rem; color: var(--night-muted); }
body.ft .lp .afc-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; }
body.ft .lp .afc-dl > div { padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--night-line, rgb(255 255 255 / .09)); }
body.ft .lp .afc-dl dt { margin: 0; font-size: .8125rem; color: var(--night-muted); }
body.ft .lp .afc-dl dd { margin: 4px 0 0; font-size: 1.5rem; line-height: 1.15; font-weight: 400; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
body.ft .lp .afc-each { display: grid; margin: 10px 0 0; padding: 0; list-style: none; }
body.ft .lp .afc-each li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--night-line, rgb(255 255 255 / .09)); font-size: .9375rem; color: var(--night-muted); max-width: none; }
body.ft .lp .afc-each li::before { content: none; }
body.ft .lp .afc-each li:last-child { border-bottom: 0; }
body.ft .lp .afc-each b { font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
body.ft .lp .afc-cta { margin-top: auto; padding-top: 22px; }
body.ft .lp .afc-cta .btn { width: 100%; --h: 46px; }
body.ft .lp .afc-note { margin: 18px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 480px) { body.ft .lp .afc-dl { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) { body.ft .lp .afc-big [data-o], body.ft .lp .afc-dl dd { transition: opacity var(--d-fast) var(--ease); } }

/* "Invite only" above the H1, and the apply button after the steps */
body.ft .lp .aff-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 auto 18px; padding: 6px 14px 6px 12px; border-radius: var(--r-pill); background: var(--card); box-shadow: var(--shadow-chip); font-size: .875rem; font-weight: 500; color: var(--ink); }
body.ft .lp .aff-badge .ic { width: 16px; height: 16px; color: var(--violet); }
body.ft .aff-apply { margin: 24px 0 0; }
