/* Affiliate program landing (/:lang/affiliate-program). Ported from frontend-design/affiliate-program/index.html:
   the designer's rules are kept as they are; everything added for this app is in the marked blocks (fonts and
   icons here, "App adaptations" at the end). Linked by layout/partials/page-css.phtml (template directory
   affiliate/landing → pages/affiliate-landing.css). */

/* Gordita with the designer's metric overrides, own family name so the overrides stay on this page (same recipe
   as pages/about-us.css). The page template preloads the three files. */
@font-face { font-family: 'gordita-af'; src: url('/new-design/fonts/Gordita-Regular-otf.woff2') format('woff2'), url('/new-design/fonts/Gordita-Regular.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; ascent-override: 98.3%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: 'gordita-af'; src: url('/new-design/fonts/Gordita-Medium-otf.woff2') format('woff2'), url('/new-design/fonts/Gordita-Medium.otf') format('opentype'); font-weight: 500; font-style: normal; font-display: swap; ascent-override: 98.3%; descent-override: 20%; line-gap-override: 0%; }
@font-face { font-family: 'gordita-af'; src: url('/new-design/fonts/Gordita-Bold-otf.woff2') format('woff2'), url('/new-design/fonts/Gordita-Bold.otf') format('opentype'); font-weight: 600 900; font-style: normal; font-display: swap; ascent-override: 98.3%; descent-override: 20%; line-gap-override: 0%; }

/* Remix Icon 3.5.0, self-hosted subset of the glyphs this page uses (lib/remixicon/, ~5 KB; built with
   fontTools.subset from the 3.5.0 release). A new ri-* icon needs its glyph added to the subset and a rule below. */
@font-face { font-family: 'remixicon-af'; src: url('/new-design/lib/remixicon/remixicon-3.5.0-affiliate-program.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: block; }
.af [class^="ri-"], .af [class*=" ri-"], .af-modal [class^="ri-"], .af-modal [class*=" ri-"] { font-family: 'remixicon-af' !important; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.ri-add-line::before { content: "\ea13"; }
.ri-apps-2-line::before { content: "\ea42"; }
.ri-arrow-down-line::before { content: "\ea4c"; }
.ri-arrow-right-line::before { content: "\ea6c"; }
.ri-bank-card-line::before { content: "\ea92"; }
.ri-bank-line::before { content: "\ea94"; }
.ri-briefcase-4-line::before { content: "\eaf1"; }
.ri-building-2-line::before { content: "\eb09"; }
.ri-calculator-line::before { content: "\eb1f"; }
.ri-calendar-check-line::before { content: "\eb23"; }
.ri-chat-heart-line::before { content: "\eb5f"; }
.ri-check-line::before { content: "\eb7b"; }
.ri-checkbox-circle-fill::before { content: "\eb80"; }
.ri-close-line::before { content: "\eb99"; }
.ri-coupon-3-line::before { content: "\ebe8"; }
.ri-customer-service-2-line::before { content: "\ec0c"; }
.ri-earth-line::before { content: "\ec7a"; }
.ri-file-text-line::before { content: "\ed0f"; }
.ri-global-line::before { content: "\edcf"; }
.ri-graduation-cap-line::before { content: "\f333"; }
.ri-group-line::before { content: "\ede3"; }
.ri-hand-coin-line::before { content: "\edf1"; }
.ri-image-line::before { content: "\ee4b"; }
.ri-lightbulb-line::before { content: "\eea9"; }
.ri-line-chart-line::before { content: "\eeab"; }
.ri-link::before { content: "\eeb2"; }
.ri-login-box-line::before { content: "\eed4"; }
.ri-medal-line::before { content: "\ef28"; }
.ri-megaphone-line::before { content: "\f385"; }
.ri-money-euro-circle-line::before { content: "\ef69"; }
.ri-movie-2-line::before { content: "\ef7f"; }
.ri-percent-line::before { content: "\efe6"; }
.ri-play-circle-line::before { content: "\f009"; }
.ri-play-fill::before { content: "\f00a"; }
.ri-question-line::before { content: "\f045"; }
.ri-quill-pen-line::before { content: "\f04a"; }
.ri-rocket-2-line::before { content: "\f094"; }
.ri-route-line::before { content: "\f09b"; }
.ri-share-forward-line::before { content: "\f0fd"; }
.ri-shopping-bag-3-line::before { content: "\f116"; }
.ri-star-fill::before { content: "\f186"; }
.ri-star-smile-line::before { content: "\f18f"; }
.ri-team-line::before { content: "\f1ee"; }
.ri-time-line::before { content: "\f20f"; }
.ri-timer-line::before { content: "\f215"; }
.ri-translate-2::before { content: "\f226"; }
.ri-user-3-fill::before { content: "\f255"; }
.ri-user-add-line::before { content: "\f25e"; }
.ri-user-search-line::before { content: "\f26c"; }
.ri-user-star-line::before { content: "\f276"; }
.ri-video-line::before { content: "\f282"; }
.ri-vip-crown-line::before { content: "\f28e"; }
.ri-wallet-3-line::before { content: "\f2ac"; }

/* ===== Designer rules (index.html <style>) ===== */
.ab { --blue: #265CFF; --blue-d: #1b3fd6; --blue-50: #eef3ff; --blue-100: #dfe8ff; --ink: #0d0e0f; --body: #3b4352; --muted: #6b7280; --line: #e6ebf3; --soft: #f6f8fc; --green: #16a34a; --green-50: #eafaf0; --violet: #7c3aed; --violet-50: #f3edff; --amber: #d97706; --amber-50: #fff6e6; }
.ab img { max-width: 100%; display: block; }
.ab a { text-decoration: none; }
.ab-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ab-sec { padding: 88px 0; scroll-margin-top: 80px; }
.ab-sec--soft { background: var(--soft); }

/* Type (shared with about-us) */
.ab-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--blue-50); border: 1px solid var(--blue-100); font-size: 12.5px; font-weight: 600; line-height: 1.3; letter-spacing: .02em; color: var(--blue); }
.ab-kicker i { font-size: 15px; line-height: 1; }
.ab-h2 { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.ab-h2 em { font-style: normal; color: var(--blue); }
.ab-lead { margin: 14px 0 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.ab-head { max-width: 720px; margin: 0 0 44px; }
.ab-head--c { margin-left: auto; margin-right: auto; text-align: center; }
.ab-mark { color: var(--ink); font-weight: 600; background: linear-gradient(180deg, transparent 58%, rgba(38,92,255,.18) 58%, rgba(38,92,255,.18) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Buttons */
.ab-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.25; text-align: center; transition: transform .2s, box-shadow .2s, background .2s; }
.ab-btn i { font-size: 18px; line-height: 1; }
.ab-btn--solid { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -8px rgba(38,92,255,.6); }
.ab-btn--solid:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -8px rgba(38,92,255,.7); }
.ab-btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ab-btn--ghost:hover { border-color: var(--blue-100); background: var(--blue-50); }
button.ab-btn { border: 0; cursor: pointer; font-family: inherit; }

/* Icon tiles */
.ab-ico { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--blue-50); color: var(--blue); }
.ab-ico i { font-size: 24px; line-height: 1; }
.ab-ico--violet { background: var(--violet-50); color: var(--violet); }
.ab-ico--green { background: var(--green-50); color: var(--green); }
.ab-ico--amber { background: var(--amber-50); color: var(--amber); }

/* ================= 1. HERO ================= */
.ab-hero { position: relative; overflow: hidden; padding: 48px 0 56px; background:
    radial-gradient(circle, rgba(38,92,255,.10) 1px, transparent 1.5px) 0 0 / 24px 24px,
    radial-gradient(55% 80% at 85% 20%, #e3ebff 0%, rgba(255,255,255,0) 70%), #fff; }
.ab-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ab-hero h1 { margin: 0; font-size: 54px; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
.ab-hero h1 span { color: var(--blue); }
.ab-hero .ab-lead { font-size: 18px; max-width: 560px; }
.ab-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ab-stats { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 16px; }
.ab-stats li { padding: 0 22px; border-left: 1px solid var(--line); }
.ab-stats li:first-child { padding-left: 0; border-left: 0; }
.ab-stats strong { display: block; white-space: nowrap; font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.ab-stats span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; hyphens: auto; }

/* Hero calculator: sits next to the hero copy so both show in the first screen */
.af-hc { width: 100%; max-width: 540px; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 70px -28px rgba(16,40,120,.3); overflow: hidden; scroll-margin-top: 100px; }
.af-hc__body { padding: 22px 24px 20px; }
.af-hc__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.af-hc__title { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.af-hc__title i { color: var(--blue); font-size: 20px; line-height: 1; }
.af-hc__rate { padding: 4px 10px; border-radius: 999px; background: var(--green-50); color: #15803d; font-size: 12.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.af-hc__lbl { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.af-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.af-seg button { height: 36px; border: 0; border-radius: 9px; background: transparent; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.af-seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(16,40,120,.18); }
.af-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.af-chips[hidden] { display: none; }
.af-chip { position: relative; display: block; cursor: pointer; }
.af-chip input { position: absolute; opacity: 0; pointer-events: none; }
.af-chip span { display: block; height: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, background .2s; }
.af-chip b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.af-chip small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.af-chip input:checked + span { border-color: var(--blue); background: var(--blue-50); }
.af-chip input:checked + span small { color: var(--blue); }
.af-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(38,92,255,.2); }
.af-hc__slide { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 10px; }
.af-hc__slide label { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.af-hc__slide output { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--blue); }
.af-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 8px; margin: 9px 0; border-radius: 999px; outline: none; cursor: pointer;
    background: linear-gradient(90deg, var(--blue) 0 var(--p, 10%), var(--blue-100) var(--p, 10%) 100%); }
.af-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); box-shadow: 0 4px 12px rgba(38,92,255,.4); }
.af-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); box-shadow: 0 4px 12px rgba(38,92,255,.4); }
.af-range:focus-visible { box-shadow: 0 0 0 4px rgba(38,92,255,.2); }
.af-hc__ends { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.af-hc__out { display: block; padding: 20px 24px 22px; color: #fff; background:
    radial-gradient(circle, rgba(255,255,255,.09) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(60% 120% at 100% 0%, #5b85ff 0%, rgba(91,133,255,0) 60%),
    linear-gradient(135deg, #1a3bcc 0%, #265CFF 100%); }
.af-hc__out small { display: block; font-size: 13px; font-weight: 500; line-height: 1.35; color: rgba(255,255,255,.8); }
.af-hc__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin-top: 2px; }
.af-hc__big strong { font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.af-hc__big span { font-size: 14px; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,.8); white-space: nowrap; }
.af-hc__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 6px; }
.af-hc__year { font-size: 14px; font-weight: 600; line-height: 1.35; white-space: nowrap; }
.af-hc__out .ab-btn { background: #fff; color: var(--blue); box-shadow: 0 12px 28px -10px rgba(0,0,0,.35); padding: 12px 18px; }
.af-hc__hint { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.2); font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.88); }
.af-hc__hint b { color: #fff; font-weight: 600; }

/* ================= 3. WHY PROMOTE ================= */
.af-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.af-card { display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.af-card:hover { transform: translateY(-3px); border-color: var(--blue-100); box-shadow: 0 18px 40px -18px rgba(16,40,120,.22); }
.af-card h3 { margin: 18px 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.af-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ================= 4. HOW IT WORKS ================= */
.af-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.af-step { position: relative; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.af-step__n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 16px; font-weight: 700; line-height: 1; box-shadow: 0 0 0 6px var(--blue-50); }
.af-step:not(:last-child)::after { content: ""; position: absolute; top: 47px; left: 84px; right: -18px; height: 2px; background: repeating-linear-gradient(90deg, var(--blue-100) 0 8px, transparent 8px 14px); }
.af-step h3 { margin: 20px 0 6px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.af-step p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.af-step__tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 5px 10px; border-radius: 8px; background: var(--soft); font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--body); }
.af-step__tag i { color: var(--blue); font-size: 15px; line-height: 1; }
.af-center { display: flex; justify-content: center; margin-top: 36px; }
/* video poster: no mp4 on load, the real video is attached later */
.af-video { position: relative; display: block; width: 100%; max-width: 880px; aspect-ratio: 16 / 9; margin: 0 auto 40px; padding: 0; border: 0; border-radius: 28px; overflow: hidden; cursor: pointer; font-family: inherit; color: #fff; text-align: left; box-shadow: 0 30px 70px -36px rgba(16,40,120,.45); background:
    radial-gradient(circle, rgba(255,255,255,.09) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(60% 90% at 100% 0%, #5b85ff 0%, rgba(91,133,255,0) 60%),
    linear-gradient(135deg, #1a3bcc 0%, #265CFF 100%); }
.af-video__play { position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--blue); box-shadow: 0 0 0 12px rgba(255,255,255,.18); transition: transform .2s; }
.af-video__play i { font-size: 38px; line-height: 1; }
.af-video:hover .af-video__play { transform: scale(1.06); }
.af-video__cap { position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.af-video__cap b { font-size: 18px; font-weight: 700; line-height: 1.3; }
.af-video__cap span { flex: 0 0 auto; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 13px; font-weight: 600; line-height: 1.3; }
.af-video__steps { position: absolute; top: 24px; left: 28px; display: flex; gap: 8px; }
.af-video__steps span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 12.5px; font-weight: 600; line-height: 1.3; }

/* ================= 5. WHAT YOU PROMOTE ================= */
.af-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.af-prods--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.af-grp { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.af-grp::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.af-grp--next { margin-top: 48px; }
.af-prod { position: relative; display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.af-prod--hl { border-color: var(--blue); box-shadow: 0 24px 50px -24px rgba(38,92,255,.45); }
.af-prod__badge { position: absolute; top: -12px; left: 26px; padding: 4px 12px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.af-prod__head { display: flex; align-items: center; gap: 14px; }
.af-prod__head b { display: block; font-size: 18px; font-weight: 700; line-height: 1.3; }
.af-prod__head small { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }
.af-prod > p { margin: 16px 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.af-prod ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.af-prod li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--body); }
.af-prod li i { flex: 0 0 18px; margin-top: 1px; font-size: 18px; line-height: 1; color: var(--green); }
.af-earn { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 14px 16px; border-radius: 14px; background: var(--soft); }
.af-earn small { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); }
.af-earn b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.af-earn strong { font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--green); white-space: nowrap; }

/* ================= 6. WHO IT'S FOR ================= */
.af-who { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.af-who li { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.af-who .ab-ico { width: 44px; height: 44px; border-radius: 12px; }
.af-who .ab-ico i { font-size: 22px; }
.af-who b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.af-who div span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.af-who-note { display: flex; justify-content: center; align-items: flex-start; gap: 6px; margin: 22px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--body); }
/* icon line box = text line box, so the glyph centres on the first text line */
.af-who-note i { flex: 0 0 auto; color: var(--green); font-size: 18px; line-height: calc(14.5px * 1.5); }

/* ================= 7. TIERS + TOOLKIT (blue band) ================= */
.af-band { position: relative; overflow: hidden; color: #fff; background:
    radial-gradient(circle, rgba(255,255,255,.09) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(60% 90% at 100% 0%, #5b85ff 0%, rgba(91,133,255,0) 60%),
    linear-gradient(135deg, #1a3bcc 0%, #265CFF 100%); }
.af-band .ab-kicker { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.af-band .ab-h2 { color: #fff; }
.af-band .ab-h2 em { color: #bcd0ff; }
.af-band .ab-lead { color: rgba(255,255,255,.85); }
.af-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.af-tier { padding: 26px; border-radius: 22px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.af-tier--on { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 30px 60px -30px rgba(5,15,70,.6); }
.af-tier__name { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.af-tier__name em { font-style: normal; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.af-tier--on .af-tier__name em { background: var(--blue-50); color: var(--blue); }
.af-tier__rate { display: block; margin: 14px 0 2px; font-size: 44px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.af-tier--on .af-tier__rate { color: var(--blue); }
.af-tier__when { display: block; font-size: 13.5px; line-height: 1.4; color: rgba(255,255,255,.8); }
.af-tier--on .af-tier__when { color: var(--muted); }
.af-tier ul { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.2); display: grid; gap: 10px; }
.af-tier--on ul { border-top-color: var(--line); }
.af-tier li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; }
.af-tier li i { flex: 0 0 18px; margin-top: 1px; font-size: 18px; line-height: 1; color: #86efac; }
.af-tier--on li { color: var(--body); }
.af-tier--on li i { color: var(--green); }
.af-kit { list-style: none; margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.2); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.af-kit li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.af-kit li i { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(255,255,255,.14); font-size: 22px; line-height: 1; }

/* ================= 8. TESTIMONIALS (autoplay marquee) ================= */
.af-quotes { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.af-quotes__track { display: flex; gap: 18px; width: max-content; animation: af-marquee 58s linear infinite; }
@keyframes af-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 9px)); } }
.af-quote { flex: 0 0 360px; display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.af-quote__stars { display: flex; gap: 2px; color: #f5b301; font-size: 16px; line-height: 1; }
.af-quote p { margin: 14px 0 18px; font-size: 15px; line-height: 1.6; color: var(--body); }
.af-quote__who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.af-quote__who b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.af-quote__who small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
        .af-ph { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eaf0ff, #d3e0ff); color: #8aa3dc; }
.af-ph i { font-size: 20px; line-height: 1; }

/* ================= 9. TERMS + FAQ ================= */
.af-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.af-terms { margin-top: 28px; }
.af-terms h3 { margin: 0 0 14px; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.af-terms__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.af-terms__item { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.af-terms .ab-ico { width: 40px; height: 40px; border-radius: 12px; }
.af-terms .ab-ico i { font-size: 20px; }
.af-terms__value { display: block; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.af-terms__label { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.af-terms__item.is-key { grid-column: 1 / -1; padding: 18px; border: 0; color: #fff; background:
    radial-gradient(60% 120% at 100% 0%, #5b85ff 0%, rgba(91,133,255,0) 60%), linear-gradient(135deg, #1a3bcc 0%, #265CFF 100%); }
.af-terms .is-key .ab-ico { background: rgba(255,255,255,.16); color: #fff; }
.af-terms .is-key .af-terms__value { font-size: 24px; color: #fff; }
.af-terms .is-key .af-terms__label { color: rgba(255,255,255,.82); }
.af-faq { display: grid; gap: 10px; }
.af-faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s; }
.af-faq details[open] { border-color: var(--blue-100); box-shadow: 0 14px 30px -20px rgba(16,40,120,.3); }
.af-faq summary { --fs: 15.5px; list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; font-size: var(--fs); font-weight: 600; line-height: 1.4; }
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary i { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue-50); color: var(--blue); font-size: 18px; line-height: 1; transition: transform .2s; margin-top: calc((var(--fs) * 1.4 - 28px) / 2); margin-bottom: calc((var(--fs) * 1.4 - 28px) / 2); }
.af-faq details[open] summary i { transform: rotate(45deg); }
.af-faq details p { margin: 0; padding: 0 20px 18px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* ================= 10. JOIN: one blue panel, normal section spacing ================= */
.af-cta { position: relative; overflow: hidden; padding: 64px 48px; border-radius: 32px; text-align: center; color: #fff; background:
    radial-gradient(circle, rgba(255,255,255,.09) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(50% 90% at 0% 0%, #5b85ff 0%, rgba(91,133,255,0) 60%),
    radial-gradient(50% 90% at 100% 100%, #4a78ff 0%, rgba(74,120,255,0) 60%),
    linear-gradient(135deg, #1a3bcc 0%, #265CFF 100%); box-shadow: 0 40px 80px -40px rgba(16,40,120,.55); }
.af-cta .ab-kicker { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.af-cta .ab-h2 { color: #fff; max-width: 680px; margin: 0 auto; }
.af-cta .ab-h2 em { color: #bcd0ff; }
.af-cta .ab-lead { max-width: 560px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,.85); }
.af-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.af-cta__btns .ab-btn { min-width: 200px; }
.af-cta .ab-btn--solid { background: #fff; color: var(--blue); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.af-cta .ab-btn--ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.45); }
.af-cta .ab-btn--ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.af-checks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.af-checks li { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; font-weight: 500; line-height: 1.4; color: rgba(255,255,255,.92); }
/* icon line box = text line box: stays on the first line when the text wraps */
.af-checks i { flex: 0 0 auto; color: #86efac; font-size: 18px; line-height: calc(14.5px * 1.4); }
.af-cta__fine { margin: 18px 0 0; font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.7); }
.af-cta__fine a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ================= Responsive ================= */
@media (max-width: 1100px) {
    .ab-hero h1 { font-size: 46px; }
    .ab-stats li { padding: 0 16px; }
    .ab-stats strong { font-size: 23px; }
    .af-kit { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
}
@media (max-width: 980px) {
    .ab-sec { padding: 68px 0; }
    .ab-h2 { font-size: 32px; }
    .ab-hero { padding: 48px 0 64px; }
    .ab-hero__grid, .af-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .af-hc { max-width: 600px; margin: 0 auto; }
    /* stacked hero: calculator right after the intro, buttons and stats below it */
    .ab-hero__grid { gap: 0; }
    .ab-hero__copy { display: contents; }
    .ab-hero__copy > .ab-kicker { justify-self: start; }
    .af-hc { order: 1; margin-top: 28px; }
    .ab-hero__btns { order: 2; }
    .ab-stats { order: 3; }
    .af-why, .af-prods, .af-who, .af-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .af-video { border-radius: 22px; }
    .af-prod--hl { order: -1; grid-column: 1 / -1; }
    .af-tier--on { order: -1; grid-column: 1 / -1; }
    .af-steps { grid-template-columns: minmax(0, 1fr); }
    .af-step:not(:last-child)::after { top: auto; bottom: -18px; left: 47px; right: auto; width: 2px; height: 18px; background: repeating-linear-gradient(180deg, var(--blue-100) 0 4px, transparent 4px 8px); }
    .af-cta { padding: 52px 32px; }
}
@media (max-width: 640px) {
    .ab-wrap { padding: 0 16px; }
    .ab-sec { padding: 56px 0; }
    .ab-h2 { font-size: 27px; }
    .ab-lead { font-size: 15.5px; }
    .ab-head { margin-bottom: 32px; }
    .ab-hero { padding: 36px 0 52px; }
    .ab-hero h1 { font-size: 34px; }
    .ab-hero .ab-lead { font-size: 16px; }
    .ab-hero__btns .ab-btn { flex: 1 1 100%; }
    .ab-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
    .ab-stats li { padding: 0 10px 0 0; }
    .ab-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
    .ab-stats li:nth-child(even) { padding-left: 14px; }
    .ab-stats strong { font-size: 22px; }
    .af-hc__body { padding: 18px 16px 16px; }
    .af-chips { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .af-chip span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; }
    .af-chip small { margin-top: 0; }
    .af-hc__out { padding: 18px 16px 18px; }
    .af-hc__big strong { font-size: 34px; }
    .af-hc__out .ab-btn { flex: 1 1 100%; }
    .af-terms__list { grid-template-columns: minmax(0, 1fr); }
    .af-why, .af-prods, .af-who, .af-tiers { grid-template-columns: minmax(0, 1fr); }
    .af-video { aspect-ratio: 4 / 3; border-radius: 20px; margin-bottom: 28px; }
    .af-video__play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
    .af-video__play i { font-size: 30px; }
    .af-video__cap { left: 18px; right: 18px; bottom: 16px; }
    .af-video__cap b { font-size: 15px; }
    .af-video__steps { top: 16px; left: 18px; }
    .af-video__steps span:nth-child(n+3) { display: none; }
    .af-grp--next { margin-top: 36px; }
    .af-card, .af-step, .af-prod, .af-tier { padding: 22px 20px; }
    .af-kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .af-quote { flex-basis: 290px; padding: 20px; }
    .af-faq summary { --fs: 15px; padding: 16px; }
    .af-faq details p { padding: 0 16px 16px; }
    .af-cta { padding: 40px 18px; border-radius: 24px; }
    .af-cta__btns .ab-btn { flex: 1 1 100%; min-width: 0; }
    .af-checks { flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; }
}
    

/* ===== Program video pop-up (lesson 1; the player is created on open) ===== */
.af-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(11, 20, 55, .72); }
.af-modal[hidden] { display: none; }
.af-modal__card { width: 100%; max-width: 920px; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(5, 15, 70, .6); }
.af-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line, #e6ebf3); }
.af-modal__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink, #0d0e0f); }
.af-modal__close { flex: 0 0 auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--soft, #f6f8fc); color: var(--ink, #0d0e0f); cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.af-modal__close i { font-size: 20px; line-height: 1; }
.af-modal__close:hover { background: var(--blue-50, #eef3ff); color: var(--blue, #265CFF); }
.af-modal__body { position: relative; aspect-ratio: 16 / 9; background: #0b1437; }
.af-modal__body video { display: block; width: 100%; height: 100%; }
.af-modal__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 32px; text-align: center; color: #fff; font-size: 16px; line-height: 1.5; }
.af-modal__empty[hidden] { display: none; }
@media (max-width: 640px) { .af-modal { padding: 12px; } .af-modal__card { border-radius: 16px; } }

/* ===== App adaptations ===== */
/* The designer page has no framework; here Bootstrap's reboot and style.css load too. These rules put back the
   browser defaults the design was drawn against (same block as pages/about-us.css). */
.af, .af-modal { font-size: 16px; font-weight: 400; line-height: normal; text-align: start; color: var(--ink, #0d0e0f); }
/* Bootstrap's reboot (loaded later) gives p/h1-3/ul/ol/dl their own margins; the designer page has none. Element
   selectors (0,0,2) still lose to every single-class designer rule that sets its own margin. */
main h1, main h2, main h3, main p, main ul, main ol, main figure { margin: 0; padding: 0; }
main ul, main ol { list-style: none; }
main label { margin-bottom: 0; }
/* Bootstrap's reboot gives inputs the page font (16px); the designer's range input keeps the browser default. */
.af .af-range { font-size: 13.3333px; line-height: normal; }
/* style.css sets font-family on every element (* { font-family: 'Gordita' }), so the family has to be set on
   every element here as well; it cannot simply inherit from .af. */
.af, .af *, .af-modal, .af-modal * { font-family: "gordita-af", "gordita", sans-serif; }
.af img, .af svg { vertical-align: baseline; }
.af button.ab-btn, .af .af-seg button, .af .af-video, .af-modal__close { -webkit-appearance: auto; appearance: auto; }
/* the h1 highlight is an <em> here (content markers), styled like the designer's <span> */
.ab-hero h1 em { font-style: normal; color: var(--blue); }
/* Bootstrap's a:hover (colour + underline) loads later and would win over the designer's single-class link
   rules; links here keep their colour on hover like in the design. */
.af a:hover { text-decoration: none; }
.af a.ab-btn--solid:hover { color: #fff; }
.af a.ab-btn--ghost:hover { color: var(--ink); }
.af .af-hc__out a.ab-btn:hover, .af .af-cta a.ab-btn--solid:hover { color: var(--blue); }
.af .af-cta a.ab-btn--ghost:hover { color: #fff; }
.af .af-cta__fine a:hover { color: #fff; text-decoration: underline; }
.af details > summary { list-style: none; }
.af output { display: inline; }
.af [hidden] { display: none !important; }
