/* The Anticode Affiliate Program page (/affiliate). The owner, 13 Nov 2026: laid out like a modern affiliate page (a
   hero card, three steps, an earnings calculator with a 12-month chart, what you get, the numbers, questions), in the
   home page's own look: its ground (#08090a), graphite cards (#161718), Plus Jakarta Sans and pill buttons. The
   numbers are the program's own (src/partners.ts, the Partner terms); the calculator is public/partners.js. */
.af {
  --af-ground: #08090a; --af-card: #161718; --af-card-2: #1c1d20; --af-ring: rgba(255, 255, 255, 0.07);
  --af-text: #f7f8f8; --af-body: #d0d6e0; --af-muted: #8a8f98;
  padding-bottom: clamp(48px, 8vw, 96px); color: var(--af-body);
}
body.site[data-page="affiliate"] { background: var(--af-ground, #08090a); }
:root[data-theme="light"] body.site[data-page="affiliate"] { background: #08090a; }
.af h1, .af h2, .af h3 { color: var(--af-text); }
.af a:not(.btn) { color: var(--af-text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.af a:not(.btn):hover { text-decoration-color: currentColor; }
.af-card { border-radius: 20px; background: var(--af-card); box-shadow: inset 0 0 0 1px var(--af-ring); }
.af-go { min-height: 44px; padding: 0 22px; font-size: 15px; }
.af-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.af-center { justify-content: center; text-align: center; }

/* the hero: one big card, the title on two lines, the second quieter */
.af-hero { padding-top: 16px; }
.af-hero-in {
  position: relative; display: grid; place-content: center; justify-items: center; min-height: min(72vh, 680px); padding: 64px 24px;
  border-radius: 28px; overflow: hidden; text-align: center; background-color: #0e0f11; box-shadow: inset 0 0 0 1px var(--af-ring);
  background-image:
    radial-gradient(ellipse 120% 90% at 50% 132%, transparent 59.6%, rgba(255, 255, 255, 0.1) 60%, transparent 60.4%),
    radial-gradient(ellipse 150% 120% at 6% -46%, transparent 64.8%, rgba(255, 255, 255, 0.06) 65%, transparent 65.3%),
    radial-gradient(ellipse 70% 55% at 50% -6%, rgba(255, 255, 255, 0.05), transparent 70%);
}
.af-hero h1 { display: grid; gap: 4px; margin: 0; font-size: clamp(36px, 5.6vw, 68px); line-height: 1.04; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.af-hero h1 span { color: var(--af-muted); }
.af-lede { max-width: 58ch; margin: 22px auto 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--af-body); }

/* sections */
.af-sec { padding-top: clamp(72px, 10vw, 128px); }
.af-h { margin: 0 auto; max-width: 18ch; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; font-weight: 500; letter-spacing: -0.03em; text-align: center; text-wrap: balance; }
.af-sub { max-width: 60ch; margin: 16px auto 40px; font-size: 16px; line-height: 1.6; text-align: center; color: var(--af-muted); }
.af-note { max-width: 72ch; margin: 18px auto 0; font-size: 13px; line-height: 1.6; color: var(--af-muted); }

/* the three steps and the four reasons: cards with an icon in a small tile */
.af-steps, .af-grid, .af-stats { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.af-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.af-steps .af-card, .af-grid .af-card { padding: 24px; }
.af-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 28px; border-radius: 12px; background: var(--af-card-2); box-shadow: inset 0 0 0 1px var(--af-ring); color: var(--af-text); }
.af-ic .i { width: 20px; height: 20px; }
.af-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.af-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--af-muted); }

/* the calculator: two sliders, the 12 months as bars, the total and the way in */
.af-calc { display: grid; gap: 28px; max-width: 920px; margin: 0 auto; padding: clamp(20px, 3vw, 32px); }
.af-field label { display: block; font-size: 14px; color: var(--af-muted); }
.af-calc .af-val { margin: 6px 0 14px; font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; color: var(--af-text); font-variant-numeric: tabular-nums; }
.af-calc .af-val span { font-weight: 500; color: var(--af-muted); }
.af-calc .af-total p { font-size: inherit; color: inherit; }
.af-field input[type="range"] {
  --af-fill: 50%; display: block; width: 100%; height: 28px; margin: 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.af-field input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--af-text) 0 var(--af-fill), var(--af-card-2) var(--af-fill)); box-shadow: inset 0 0 0 1px var(--af-ring); }
.af-field input[type="range"]::-moz-range-track { height: 10px; border-radius: 999px; background: var(--af-card-2); box-shadow: inset 0 0 0 1px var(--af-ring); }
.af-field input[type="range"]::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--af-text); }
.af-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -8px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--af-card), 0 4px 12px rgba(0, 0, 0, 0.5); }
.af-field input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--af-card), 0 4px 12px rgba(0, 0, 0, 0.5); }
.af-field input[type="range"]:focus-visible { outline: 2px solid var(--pen); outline-offset: 4px; border-radius: 999px; }

.af-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 8px; height: 220px; padding: 8px 4px 0; border-radius: 14px; }
.af-bar { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; justify-items: center; gap: 6px; min-width: 0; }
.af-bar i { display: block; align-self: end; width: 100%; height: var(--h, 0%); min-height: 3px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #e9ebee, #9aa0a8); transition: height 260ms cubic-bezier(.16, 1, .3, 1); }
.af-bar:last-child i { background: #fff; }
.af-bar b { font-size: 11px; font-weight: 600; color: var(--af-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.af-bar:last-child b { color: var(--af-text); }
.af-bar small { font-size: 11.5px; color: var(--af-muted); }
.af-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 18px 18px 22px; border-radius: 16px; background: var(--af-card-2); box-shadow: inset 0 0 0 1px var(--af-ring); }
.af-total p { display: grid; gap: 2px; margin: 0; }
.af-total span { font-size: 14px; color: var(--af-muted); }
.af-total b { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.03em; color: var(--af-text); font-variant-numeric: tabular-nums; }

/* the numbers */
.af-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-stats .af-card { display: grid; gap: 10px; padding: 28px 24px; text-align: center; }
.af-stats b { font-size: clamp(48px, 6vw, 76px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--af-text); }
.af-stats span { font-size: 14.5px; line-height: 1.5; color: var(--af-muted); }

/* questions */
.af-faq { max-width: 820px; margin: 40px auto 0; }
.af-faq details { border-bottom: 1px solid var(--af-ring); }
.af-faq summary { position: relative; display: block; padding: 20px 40px 20px 0; font-size: 18px; font-weight: 500; color: var(--af-text); cursor: pointer; list-style: none; }
.af-faq summary::-webkit-details-marker { display: none; }
/* a plus that becomes a minus when the answer is open */
.af-faq details > summary:not(.btn)::before { content: none; }
.af-faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--af-muted), var(--af-muted)) center / 14px 1.5px no-repeat, linear-gradient(var(--af-muted), var(--af-muted)) center / 1.5px 14px no-repeat;
  transition: background-size 200ms ease;
}
.af-faq details[open] summary::after { background-size: 14px 1.5px, 1.5px 0; }
.af-faq summary:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; border-radius: 8px; }
.af-faq p { margin: 0 0 20px; max-width: 70ch; font-size: 15px; line-height: 1.65; color: var(--af-muted); }

@media (max-width: 860px) {
  .af-steps, .af-stats { grid-template-columns: minmax(0, 1fr); }
  .af-grid { grid-template-columns: minmax(0, 1fr); }
  .af-chart { gap: 4px; height: 180px; }
  .af-bar b { display: none; }
  .af-total { flex-direction: column; align-items: stretch; text-align: center; }
  .af-hero-in { min-height: 0; padding: 72px 20px; }
}
@media (prefers-reduced-motion: reduce) { .af-bar i, .af-faq summary::after { transition: none; } }
