/* Ink and Lime /affiliate-program (Vytas, 2026-11-03), English on dev only. Template: frontend/affiliate/affiliate_ink.pug.
   Loads after ink/home.css, which owns the tokens, header, footer and every shared section (hero, Triggers cards, Who switcher,
   FAQ, lime close). This file adds only what the affiliate page has that the homepage does not: the four step pictures,
   the earnings calculator and the terms tiles. */

html body.ik.ika:not(#_) .is-left p.ik-hero__sub { max-width: 540px; }

/* No colour backgrounds behind visuals, on any page (Vytas, 2026-11-03: "never add background colors like on right side visual",
   "do not do this on any pages"). The ik-art frames from ink/home.css become the plain mist surface, and the white mocks get a line. */
html body.ik.ika:not(#_) .ik-art { background: var(--cf-mist); }
html body.ik.ika:not(#_) .ik-art :is(.ik-ui, .ik-dmcard, .ika-web, .ik-post) { border: 1px solid var(--cf-line); }

/* ---------- 2. Four steps: one picture of what the affiliate sees ---------- */
html body.ik.ika:not(#_) .ika-how .ik-art { justify-content: center; height: 230px; padding: 16px; }
.ika-app { width: min(250px, 100%); transform: rotate(-1.5deg); }
.ika-app__who { display: flex; align-items: center; gap: 10px; }
html body.ik:not(#_) .ika-app__who img { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.ika-app__who span { display: flex; flex-direction: column; min-width: 0; }
html body.ik:not(#_) p.ika-app__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--cf-mist); font-size: 13px; }

.ika-link { width: min(262px, 100%); transform: rotate(1.5deg); }
html body.ik:not(#_) p.ika-link__lbl { font-size: 12px; font-weight: 500; color: #63636b; }
html body.ik:not(#_) p.ika-link__field { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0 12px; padding: 6px 6px 6px 10px; border-radius: 10px; background: var(--cf-mist); font-size: 12px; }
.ika-link__field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ika-link__field b { flex: none; padding: 4px 9px; border-radius: 7px; background: var(--cf-ink); font-size: 11px; color: #fff; }
html body.ik:not(#_) p.ika-link__code { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.ika-link__code span { padding: 5px 14px; border: 1.5px dashed #111; border-radius: 9px; font-size: 16px; font-weight: 600; letter-spacing: .06em; }
.ika-link__code i { padding: 4px 9px; border-radius: 999px; background: var(--cf-lime); font-size: 12px; font-weight: 600; color: #111; }

.ika-reel { width: 156px; transform: rotate(-2deg); }
html body.ik:not(#_) .ika-reel .ik-post__pic { position: relative; aspect-ratio: 1 / 1; }
html body.ik:not(#_) .ika-reel .ik-post__pic img { object-position: center 18%; }
.ika-reel__tag { position: absolute; left: 50%; bottom: 10px; padding: 5px 9px; border-radius: 8px; background: #fff; font-size: 11px; font-weight: 600; color: #111; white-space: nowrap; transform: translateX(-50%) rotate(-3deg); }
html body.ik:not(#_) .ika-reel .ik-post__cmt { padding: 8px 10px 10px; font-size: 12px; }
html body.ik:not(#_) .ika-reel .ik-post__cmt img { width: 20px; height: 20px; }

.ika-pay { width: min(262px, 100%); transform: rotate(1.5deg); }
html body.ik:not(#_) p.ika-pay__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ika-pay__top span { font-size: 12px; font-weight: 600; color: #003087; }
html body.ik:not(#_) p.ika-pay__row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #efeff0; }
.ika-pay__row span:first-child { width: 44px; font-size: 12px; color: #63636b; }
.ika-pay__row b { flex: 1; font-variant-numeric: tabular-nums; }

/* ---------- 3. Earnings calculator: controls on ink, the result on a white card ---------- */
.ika-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ika-calc__ctl { padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--cf-ink-line); border-radius: 28px; background: var(--cf-ink-2); }
html body.ik:not(#_) p.ika-calc__lbl { margin-bottom: 12px; font-size: 14px; font-weight: 500; color: var(--cf-on-ink-2); text-align: left; }
html body.ik:not(#_) p.ika-calc__lbl.is-dark { margin-bottom: 4px; color: #63636b; }
.ika-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html body.ik:not(#_) button.ika-plan { appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; padding: 14px 16px; border: 1px solid #3a3a3f; border-radius: 16px; background: transparent; font: inherit; color: var(--cf-on-ink); text-align: left; cursor: pointer; transition: border-color .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease); }
.ika-plan span { font-size: 16px; font-weight: 500; }
.ika-plan b { font-size: 14px; font-weight: 400; color: var(--cf-on-ink-2); }
html body.ik:not(#_) button.ika-plan[aria-pressed="true"] { border-color: var(--cf-lime); background: var(--cf-lime); color: var(--cf-ink); }
html body.ik:not(#_) button.ika-plan[aria-pressed="true"] b { color: #2e3300; }
@media (hover: hover) { html body.ik:not(#_) button.ika-plan[aria-pressed="false"]:hover { border-color: var(--cf-on-ink-2); } }
.ika-calc__n { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 28px; }
.ika-calc__n label { margin: 0; font-size: 16px; font-weight: 500; color: var(--cf-on-ink); }
.ika-calc__n output { font-size: 32px; font-weight: 600; letter-spacing: -.03em; color: var(--cf-on-ink); font-variant-numeric: tabular-nums; }
html body.ik:not(#_) input.ika-range { --fill: 18.37%; appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 6px; margin: 14px 0 0; border-radius: 3px; background: linear-gradient(to right, var(--cf-lime) var(--fill), #3a3a3f var(--fill)); cursor: pointer; }
html body.ik:not(#_) input.ika-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border: 3px solid var(--cf-lime); border-radius: 50%; background: #fff; }
html body.ik:not(#_) input.ika-range::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid var(--cf-lime); border-radius: 50%; background: #fff; }
html body.ik:not(#_) input.ika-range:focus-visible { outline: 2px solid var(--cf-lime); outline-offset: 6px; }
html body.ik:not(#_) p.ika-calc__note { margin-top: 24px; font-size: 14px; line-height: 1.5; color: var(--cf-on-ink-2); text-align: left; }

.ika-calc__out { padding: clamp(22px, 2.4vw, 32px); border-radius: 28px; background: #fff; color: var(--cf-text); }
html body.ik:not(#_) p.ika-calc__big { font-size: clamp(52px, 5.4vw, 76px); font-weight: 600; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; text-align: left; }
html body.ik:not(#_) p.ika-calc__sub { margin-top: 8px; font-size: 16px; color: var(--cf-text-2); text-align: left; }
html body.ik:not(#_) p.ika-calc__total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--cf-mist); }
.ika-calc__total span { font-size: 15px; color: var(--cf-text-2); }
.ika-calc__total b { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ika-bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.ika-bars i { flex: 1; height: max(4px, calc(var(--h, 1) * 100%)); border-radius: 4px 4px 0 0; background: var(--cf-line); transition: height .45s var(--ease-out); }
.ika-bars i:last-child { background: var(--cf-ink); }
.ika-bars__x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: #63636b; }

/* ---------- 4. Terms: eight facts as tiles ---------- */
html body.ik:not(#_) ul.ika-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html body.ik:not(#_) .ika-terms li { padding: 22px 20px; border-radius: 24px; background: #fff; }
.ika-terms b { display: block; font-size: clamp(28px, 2.5vw, 36px); font-weight: 600; line-height: 1.05; letter-spacing: -.035em; color: var(--cf-text); }
.ika-terms span { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: #63636b; }
html body.ik:not(#_) .ika-terms p { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--cf-text-2); text-align: left; }

/* ---------- 5. Who: the bloggers scene ---------- */
html body.ik:not(#_) .ika-web { position: absolute; top: 10%; left: 6%; width: 56%; padding: 14px; border-radius: 20px; background: #fff; color: #111; transform: rotate(-2deg); }
html body.ik:not(#_) p.ika-web__url { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--cf-mist); font-size: 12px; color: #52525b; }
.ika-web__url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body.ik:not(#_) p.ika-web__h { margin: 14px 2px 12px; font-size: 20px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; text-align: left; }
html body.ik:not(#_) .ika-web__shot { width: 100%; height: auto; aspect-ratio: 464 / 248; margin-bottom: 8px; border-radius: 10px; object-fit: cover; }
.ika-web__pick { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--cf-line); border-radius: 14px; }
html body.ik:not(#_) .ika-web__pick img { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.ika-web__pick span { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 1.25; }
.ika-web__pick b { font-weight: 600; }
.ika-web__pick i { font-style: normal; font-size: 12px; color: #63636b; }
.ika-web__pick em { flex: none; padding: 7px 12px; border-radius: 8px; background: var(--cf-ink); font-size: 12px; font-style: normal; font-weight: 600; color: #fff; }
html body.ik:not(#_) p.ika-stats__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ika-stats__top span { font-size: 12px; color: #63636b; }
.ika-stats__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ika-stats__nums span { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: var(--cf-mist); }
.ika-stats__nums b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

/* ---------- Close: three program facts in place of the proof row, the commissions card ---------- */
html body.ik:not(#_) .ika-facts svg { flex: none; color: var(--cf-ink); }
.ika-new__ico { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cf-lime); font-size: 18px; font-weight: 600; line-height: 1; color: #111; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 1099px) {
  html body.ik:not(#_) ul.ika-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .ika-calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  html body.ik:not(#_) ul.ika-terms { gap: 8px; }
  html body.ik:not(#_) .ika-terms li { padding: 16px 14px; border-radius: 20px; }
  .ika-terms b { font-size: 22px; white-space: nowrap; }
  /* "20% de descuento" is wider than a phone card; on translated pages it may take two lines (2026-11-07). */
  html:not([lang^="en"]) .ika-terms b { white-space: normal; }
  .ika-terms span { font-size: 13px; }
  html body.ik:not(#_) .ika-terms p { margin-top: 8px; font-size: 14px; }
  .ika-calc__ctl, .ika-calc__out { border-radius: 24px; }
  html body.ik:not(#_) button.ika-plan { padding: 12px; }
  .ika-plan span { font-size: 15px; }
  .ika-plan b { font-size: 13px; }
  html body.ik:not(#_) .ika-web { width: 62%; padding: 10px; border-radius: 16px; }
  html body.ik:not(#_) p.ika-web__h { margin: 10px 2px 8px; font-size: 14px; }
  .ika-web__pick { gap: 6px; padding: 6px; }
  html body.ik:not(#_) .ika-web__pick img { width: 28px; height: 28px; }
  .ika-web__pick span { font-size: 12px; }
  .ika-web__pick i { font-size: 11px; }
  .ika-web__pick em { padding: 5px 8px; font-size: 11px; }
  .ika-stats__nums span { padding: 6px; }
  .ika-stats__nums b { font-size: 15px; }
  /* Agencies scene: the list is wider so each client and amount stay on one line. */
  html body.ik.ika:not(#_) .ik-aud .ik-ui--ws.ik-aud__ui { width: 66%; }
  html body.ik.ika:not(#_) .ik-aud .ik-ui--ws b { white-space: nowrap; }
  html body.ik:not(#_) .ika-web__shot { margin-bottom: 6px; border-radius: 6px; }
  /* Bloggers scene on a phone: the blog post alone, so no card covers its button. */
  html body.ik:not(#_) .ika-web { top: 8%; left: 12%; width: 76%; }
  html body.ik:not(#_) .ik-aud .ika-stats.ik-aud__ui { display: none; }
  /* The DM in the creators scene: the link card shows its picture and name only. */
  html body.ik:not(#_) .ik-aud .ik-dm__link img { height: 64px; }
  html body.ik:not(#_) .ik-aud .ik-dm__link span { padding: 5px 8px 6px; }
  html body.ik:not(#_) .ik-aud .ik-dm__link b { font-size: 12px; }
  html body.ik:not(#_) .ik-aud .ik-dm__link i { font-size: 10px; }
  /* Three facts do not fit one line on a phone, so they stack. */
  html body.ik:not(#_):not(#_) .ik-close ul.ika-facts { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 8px; white-space: normal; font-size: 14px; }
  html body.ik:not(#_):not(#_) .ik-close ul.ika-facts li { padding: 0; border-left: 0; }
}
html body.ik:not(#_) .ik-close p.ika-agree { margin-top: 14px; font-size: 14px; color: #2e3300; text-align: left; }
