/* Influencer programme page (/influencer-programm): tokens and every piece the three designs share.
   The design's own layout lives in program-{a,b,c}.css. Mobile first, rungs 600 / 900 / 1200 only.
   Orange is the call to action only; no black section grounds (dark only under the hero photo). */

.rp {
  --rp-ink: #111214;
  --rp-text: rgba(17, 18, 20, .74);
  --rp-muted: rgba(17, 18, 20, .68);   /* >= 6:1 on white, paper and the topo milk (WCAG AA for the small hints) */
  --rp-line: rgba(17, 18, 20, .12);
  --rp-line-strong: #cfc7b8;
  --rp-orange: #FF6A00;
  --rp-orange-hover: #e55e00;
  --rp-orange-text: #B84A00;
  --rp-good: #1f5d3a;
  --rp-error: #9b2c1f;
  --rp-milk: #EDE3D5;
  --rp-milk-text: rgba(237, 227, 213, .92);
  --rp-milk-soft: rgba(237, 227, 213, .72);
  --rp-paper: #FAF7F2;
  --rp-topo: #F5EDDE url('/images/backgrounds/6a0acbec-9e6a-463e-a7e9-0ae96154faa9.webp') center / cover no-repeat;
  --rp-radius: 4px;
  --rp-gutter: 16px;
  --rp-section-y: 36px;
  --rp-header-h: 72px;
  color: var(--rp-ink);
  font-family: 'Roboto', sans-serif;
  overflow-x: clip;
}
.rp *, .rp *::before, .rp *::after { box-sizing: border-box; }
.rp [hidden] { display: none !important; }
.rp :target, .rp [id] { scroll-margin-top: calc(var(--rp-header-h) + 16px); }

/* ---- Shared building blocks ----------------------------------------------------------------- */

.rp-wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--rp-gutter); }
.rp-wrap--wide { max-width: 1240px; }

.rp-band { padding: var(--rp-section-y) 0; background: #fff; }
.rp-band--milk { background: var(--rp-topo); }
.rp-band--paper { background: var(--rp-paper); }
.rp-band + .rp-band { border-top: 1px solid var(--rp-line); }
.rp-band--milk + .rp-band, .rp-band + .rp-band--milk { border-top-color: transparent; }

.rp-head { margin-bottom: 20px; }
.rp-eyebrow {
  display: block; margin-bottom: 12px;
  font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--rp-orange-text);
}
.rp-h2 {
  margin: 0; font-size: clamp(26px, 6vw, 38px); font-weight: 800; line-height: 1.1;
  letter-spacing: -.02em; color: var(--rp-ink);
}
.rp-lede { margin: 12px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.7; color: var(--rp-text); }

.rp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 28px; border: 1px solid transparent; border-radius: var(--rp-radius);
  font: 700 14px/1.2 'Roboto', sans-serif; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.rp-btn--primary { background: var(--rp-orange); border-color: var(--rp-orange); color: #fff; }
.rp-btn--primary:hover { background: var(--rp-orange-hover); border-color: var(--rp-orange-hover); color: #fff; }
.rp-btn[aria-busy="true"] { opacity: .6; cursor: progress; }

.rp-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rp-ink); text-decoration: none;
  background: linear-gradient(var(--rp-ink), var(--rp-ink)) left calc(100% - 10px) / 100% 2px no-repeat;
}
.rp-link:hover { color: var(--rp-ink); }

.rp-btn:focus-visible, .rp-link:focus-visible, .rp-hero__more:focus-visible, .rp-input:focus-visible,
.rp-range:focus-visible, .rp-faq__q:focus-visible, .rp-admin a:focus-visible {
  outline: 2px solid var(--rp-orange); outline-offset: 3px;
}
.rp-apply:focus { outline: none; }

/* ---- Admin bar (switch off / design pick) --------------------------------------------------- */

.rp-admin { position: relative; z-index: 2; background: var(--rp-paper); border-bottom: 1px solid var(--rp-line); margin-top: var(--rp-header-h); }
.rp-admin__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 8px; padding-bottom: 8px; }
.rp-admin__note { margin: 0; font-size: 13px; color: var(--rp-ink); }
.rp-admin__designs { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.rp-admin__design {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  border: 1px solid var(--rp-line-strong); border-radius: var(--rp-radius); color: var(--rp-ink); text-decoration: none;
}
.rp-admin__design.is-active { background: var(--rp-ink); border-color: var(--rp-ink); color: #fff; }
.rp-admin + .rp-hero { --rp-hero-top: 32px; }

/* ---- Hero (shared anatomy; each design sizes it) -------------------------------------------- */

.rp-hero { position: relative; overflow: hidden; color: var(--rp-milk); background: #2a2622; }
.rp-hero__media { position: absolute; inset: 0; }
.rp-hero__media picture { display: block; width: 100%; height: 100%; }
.rp-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.rp-hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17, 18, 20, .86) 0%, rgba(17, 18, 20, .5) 50%, rgba(17, 18, 20, .3) 100%);
}
.rp-hero__inner { position: relative; padding-top: calc(var(--rp-hero-top, var(--rp-header-h)) + 32px); padding-bottom: 40px; }
.rp-hero .rp-eyebrow { color: var(--rp-milk-text); }
.rp-hero__h1 { margin: 0; color: var(--rp-milk); text-shadow: 0 2px 24px rgba(0, 0, 0, .35); overflow-wrap: anywhere; }
.rp-hero__line { margin: 18px 0 0; max-width: 48ch; font-size: 17px; line-height: 1.6; color: var(--rp-milk-text); }
.rp-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.rp-hero__more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rp-milk); text-decoration: none; border-bottom: 1px solid rgba(237, 227, 213, .5);
}
.rp-hero__more:hover { color: #fff; border-bottom-color: #fff; }

/* ---- 2. What you get (base) ------------------------------------------------------------------ */

.rp-gets__list { list-style: none; margin: 0; padding: 0; }
.rp-gets__v { font-variant-numeric: tabular-nums; color: var(--rp-ink); white-space: nowrap; }
.rp-gets__t { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--rp-ink); }
.rp-gets__d { margin: 6px 0 0; font-size: 15px; line-height: 1.65; color: var(--rp-text); max-width: 56ch; }

/* ---- 3. Steps (base) ------------------------------------------------------------------------- */

.rp-steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.rp-steps__item { position: relative; }
.rp-steps__num { display: block; font-variant-numeric: tabular-nums; color: var(--rp-ink); }
.rp-steps__marker { display: none; }
.rp-steps__t { margin: 8px 0 0; font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--rp-ink); }
.rp-steps__d { margin: 8px 0 0; font-size: 15px; line-height: 1.65; color: var(--rp-text); max-width: 46ch; }

/* ---- 4. Calculator (base) -------------------------------------------------------------------- */

.rp-calc { display: grid; gap: 24px; }
.rp-calc__controls { display: grid; gap: 20px; }
/* Mode switch: link only (no community discount) or code (discount). Spans the whole calculator. */
.rp-calc__mode { grid-column: 1 / -1; margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.rp-calc__mode legend { width: 100%; margin-bottom: 8px; padding: 0; }
.rp-calc__mode-opt { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--rp-line-strong); border-radius: var(--rp-radius); background: #fff; cursor: pointer;
  font-size: 15px; line-height: 1.35; color: var(--rp-ink); }
.rp-calc__mode-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--rp-ink); flex: none; }
.rp-calc__mode-opt:has(input:checked) { border-color: var(--rp-ink); box-shadow: inset 0 0 0 1px var(--rp-ink); font-weight: 600; }
.rp-calc__mode-opt:has(input:focus-visible) { outline: 2px solid var(--rp-ink); outline-offset: 2px; }
.rp-calc [hidden] { display: none !important; }
.rp-calc__per { margin: 8px 0 0; font-size: 13px; color: var(--rp-muted); font-variant-numeric: tabular-nums; }
.rp-calc__range-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rp-calc__count { font-size: 15px; font-weight: 800; color: var(--rp-ink); font-variant-numeric: tabular-nums; }
.rp-calc__scale { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12px; color: var(--rp-muted); font-variant-numeric: tabular-nums; }
.rp-calc__results { display: grid; gap: 12px; }
.rp-calc__result { display: grid; gap: 4px; padding: 16px 18px; background: #fff; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); }
.rp-calc__label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--rp-muted); }
.rp-calc__value { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--rp-ink); font-variant-numeric: tabular-nums; }
.rp-calc__result--cash .rp-calc__value { font-size: 40px; }
.rp-calc__sub { font-size: 13px; color: var(--rp-text); font-variant-numeric: tabular-nums; }
.rp-calc__note { margin: 0; font-size: 13px; line-height: 1.6; color: var(--rp-muted); max-width: 70ch; }

.rp-range {
  --rp-fill: 22%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 4px 0 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
.rp-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--rp-ink) var(--rp-fill), rgba(17, 18, 20, .16) var(--rp-fill));
}
.rp-range::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(17, 18, 20, .16); }
.rp-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--rp-ink); }
.rp-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%;
  background: #fff; border: 3px solid var(--rp-ink); box-shadow: 0 2px 6px rgba(17, 18, 20, .2);
}
.rp-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--rp-ink); }

/* ---- Fields (calculator and form) ------------------------------------------------------------ */

.rp-field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.rp-field__label { font-size: 13px; font-weight: 700; color: var(--rp-ink); }
.rp-field__opt { font-weight: 400; color: var(--rp-muted); }
.rp-field__hint { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--rp-muted); }
.rp-field__error { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--rp-error); }
.rp-field__state { margin: 0; min-height: 0; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--rp-muted); }
.rp-field__state:empty { display: none; }
.rp-field__state.is-free { color: var(--rp-good); }
.rp-field__state.is-taken { color: var(--rp-error); }
.rp-input--code { text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.rp-thanks__code { margin: 12px 0 0; font-size: 16px; color: var(--rp-text); }
.rp-thanks__code strong { color: var(--rp-ink); letter-spacing: .08em; }
.rp-input {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 16px/1.4 'Roboto', sans-serif; color: var(--rp-ink);
  background: #fff; border: 1px solid var(--rp-line-strong); border-radius: var(--rp-radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rp-input::placeholder { color: rgba(17, 18, 20, .6); }
.rp-input:hover { border-color: rgba(17, 18, 20, .45); }
.rp-input:focus { border-color: var(--rp-ink); box-shadow: 0 0 0 1px var(--rp-ink); outline: none; }
.rp-input--area { min-height: 104px; resize: vertical; }
.rp-field.is-invalid .rp-input { border-color: var(--rp-error); box-shadow: 0 0 0 1px var(--rp-error); }
.rp-select { position: relative; }
.rp-select .rp-input {
  -webkit-appearance: none; appearance: none; padding-right: 42px; text-overflow: ellipsis;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111214' stroke-width='1.8'/%3E%3C/svg%3E") right 16px center / 12px 8px no-repeat;
}

/* ---- 5. The cabinet mock (frame; the inside is the cabinet's own pc-/rc- classes) ------------ */

.rp-cab { position: relative; margin: 0; }
.rp-cab__tag {
  position: absolute; z-index: 2; top: -12px; right: 16px; padding: 4px 10px; border-radius: 2px;
  background: var(--rp-ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.rp-cab__frame {
  border: 1px solid var(--rp-line-strong); border-radius: 8px; overflow: hidden;
  background: var(--pc-paper, #FAF7F2); color: var(--pc-text); font: 400 14px/1.5 'Roboto', sans-serif;
  box-shadow: 0 24px 60px rgba(17, 18, 20, .12); user-select: none;
}
.rp-cab__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--pc-line, #e2ddd4); }
.rp-cab__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--pc-line-strong, #cfc7b8); }
.rp-cab__bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--pc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-cab__app { display: grid; grid-template-columns: minmax(0, 1fr); }
.rp-cab__side { display: none; }
.rp-cab__main { min-width: 0; padding: 20px 14px 24px; }
.rp-cab .pc-page { max-width: none; }
.rp-cab .rc-code__value { font-size: 22px; }
.rp-cab__input { display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pc-ink); }
.rp-cab .rc-page-link { color: var(--pc-ink); word-break: break-all; }
.rp-cab .rc-table--stats { font-variant-numeric: tabular-nums; }

/* ---- 6. Tours rail ---------------------------------------------------------------------------- */

.rp-head--row { display: grid; gap: 4px; }
.rp-head--row .rp-lede { margin-top: 8px; }
.rp-tours__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  margin: 0 calc(var(--rp-gutter) * -1); padding: 4px var(--rp-gutter) 8px;
}
.rp-tours__rail::-webkit-scrollbar { display: none; }
.rp-tours__item { scroll-snap-align: start; min-width: 0; }
.rp-tours__item .cp-tour-card { height: 300px; }

/* ---- 7. FAQ ----------------------------------------------------------------------------------- */

.rp-faq__list { display: grid; border-top: 1px solid var(--rp-line); }
.rp-faq__item { border-bottom: 1px solid var(--rp-line); }
.rp-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0;
  font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--rp-ink); cursor: pointer; list-style: none;
}
.rp-faq__q::-webkit-details-marker { display: none; }
.rp-faq__q .bi { flex: 0 0 auto; font-size: 14px; transition: transform .25s ease; }
.rp-faq__item[open] .rp-faq__q .bi { transform: rotate(180deg); }
.rp-faq__a { margin: 0; padding: 0 0 18px; max-width: 68ch; font-size: 15px; line-height: 1.75; color: var(--rp-text); }

/* ---- 8. Form ---------------------------------------------------------------------------------- */

.rp-form__grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.rp-form__summary {
  margin: 0 0 18px; padding: 10px 14px; border-left: 3px solid var(--rp-error); background: #fbf1ee;
  font-size: 14px; font-weight: 500; color: var(--rp-error);
}
.rp-form__foot { display: grid; gap: 14px; justify-items: start; margin-top: 22px; }
.rp-form__submit { width: 100%; }
.rp-form__privacy { margin: 0; font-size: 12.5px; color: var(--rp-muted); }
.rp-thanks { max-width: 640px; }
.rp-thanks .rp-link { margin-top: 16px; }

/* ---- 600 -------------------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .rp { --rp-gutter: 24px; --rp-section-y: 48px; }
  .rp-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .rp-field--wide { grid-column: 1 / -1; }
  .rp-form__submit { width: auto; }
  .rp-tours__rail { grid-auto-columns: 46%; }
  .rp-cab__main { padding: 24px; }
  .rp-cab .rc-code__value { font-size: 26px; }
}

/* ---- 900 -------------------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .rp { --rp-section-y: 60px; }
  .rp-head--row { grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 24px; }
  .rp-head--row .rp-lede { margin: 0; justify-self: end; text-align: right; }
  .rp-tours__rail {
    grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, 1fr); gap: 24px 20px;
    overflow: visible; margin: 0; padding: 0;
  }
  .rp-tours__item .cp-tour-card { height: 340px; }
  .rp-cab__app { grid-template-columns: 200px minmax(0, 1fr); }
  .rp-cab__side { display: flex; flex-direction: column; padding: 20px 12px; background: #fff; border-right: 1px solid var(--pc-line, #e2ddd4); }
  .rp-cab__brand { margin: 0 8px 24px; font-size: 16px; font-weight: 800; letter-spacing: .08em; color: var(--pc-ink); }
  .rp-cab__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .rp-cab__link { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 10px; border-radius: 4px; color: var(--pc-ink); font-weight: 500; }
  .rp-cab__link.is-active { background: var(--pc-paper, #FAF7F2); font-weight: 700; box-shadow: inset 2px 0 0 var(--pc-ink); }
  .rp-cab__link .pc-icon { width: 18px; height: 18px; }
  .rp-cab__main { padding: 28px 28px 32px; }
}
/* Beside the mock's sidebar the cabinet's own two-column overview is too narrow until 1200. */
@media (min-width: 900px) and (max-width: 1199px) {
  .rp-cab .rc-overview { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .rp *, .rp *::before, .rp *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rp-tours__item .cp-tour-card { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.rp) { scroll-behavior: smooth; }
}
