/* Programma referenti: /affiliate (app/views/affiliate.php) e /affiliate/manual (app/views/affiliate-manual.php).
   Stesso stile di sfy-unfollowers.css; tutto sotto .af, dark mode con body.darkside. */
.af { --af-blue: #1668E3; --af-blue-2: #0F58C9; --af-text: #1D1D1F; --af-text-2: #4B5563; --af-text-3: #9CA3AF; --af-card: #fff; --af-bg: #F5F6F8;
    --af-border: #E5E5EA; --af-soft: #F3F6FC; --af-ok: #16A34A; --af-ok-bg: rgba(22,163,74,.1); --af-warn: #B45309; --af-warn-bg: rgba(245,158,11,.12);
    --af-err: #DC2626; --af-err-bg: rgba(220,38,38,.09);
    box-sizing: border-box; max-width: 1000px; margin: 0 auto; padding: 96px 20px 60px; color: var(--af-text); font-family: inherit; }
body.darkside .af { --af-text: #FAFAFA; --af-text-2: #A3A3A3; --af-text-3: #737373; --af-card: #141416; --af-bg: #0B0B0D; --af-border: rgba(255,255,255,.09);
    --af-soft: rgba(22,104,227,.14); --af-ok: #4ADE80; --af-ok-bg: rgba(74,222,128,.12); --af-warn: #FBBF24; --af-warn-bg: rgba(251,191,36,.12);
    --af-err: #F87171; --af-err-bg: rgba(248,113,113,.12); }
.af *, .af *::before, .af *::after { box-sizing: border-box; }
.af a { text-decoration: none; color: var(--af-blue); }
.af h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--af-text); }
.af p { margin: 0; }

.af-head { text-align: left; display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.af-head h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--af-text); }
.af-head p { margin: 6px 0 0; max-width: 600px; font-size: 14.5px; line-height: 1.55; color: var(--af-text-2); }
.af-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--af-soft); color: var(--af-blue); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.af-chip--suspended { background: var(--af-err-bg); color: var(--af-err); }
.af-chip--left { background: var(--af-warn-bg); color: var(--af-warn); }
.af-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.af-back { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--af-text-2) !important; }
.af-back:hover { color: var(--af-blue) !important; }

.af-flash { margin: 0 0 14px !important; padding: 12px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.af-flash--ok { background: var(--af-ok-bg); color: var(--af-ok); }
.af-flash--err { background: var(--af-err-bg); color: var(--af-err); }
.af-flash--warn { background: var(--af-warn-bg); color: var(--af-warn); }
.af-notice { margin-bottom: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--af-border); border-left: 4px solid var(--af-blue); background: var(--af-card); }
.af-notice b { display: block; margin-bottom: 4px; font-size: 13px; color: var(--af-blue); }
.af-notice p { font-size: 14px; line-height: 1.55; color: var(--af-text-2); }

.af-card { margin-bottom: 14px; padding: 18px; border-radius: 28px; background: var(--af-card); border: 1px solid var(--af-border); }
.af-note { margin-top: 12px !important; font-size: 12.5px; line-height: 1.5; color: var(--af-text-3); }
.af-none { margin: 6px 2px; font-size: 14px; line-height: 1.5; color: var(--af-text-2); }
.af-link { font-weight: 600; }

/* come funziona */
.af-steps { list-style: none; counter-reset: af; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.af-steps li { counter-increment: af; position: relative; padding-left: 40px; min-height: 30px; }
.af-steps li::before { content: counter(af); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--af-soft); color: var(--af-blue); font-weight: 700; font-size: 13px; }
.af-steps b { display: block; font-size: 14.5px; color: var(--af-text); }
.af-steps span { display: block; font-size: 13.5px; line-height: 1.5; color: var(--af-text-2); }
.af-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.af-levels div { padding: 14px; border-radius: 16px; background: var(--af-bg); }
body.darkside .af-levels div { background: rgba(255,255,255,.04); }
.af-levels span { display: block; font-size: 12px; font-weight: 600; color: var(--af-text-3); }
.af-levels b { display: block; margin: 4px 0 2px; font-size: 24px; font-weight: 700; color: var(--af-blue); }
.af-levels small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--af-text-2); }

/* moduli */
.af-form { display: flex; flex-direction: column; gap: 14px; }
.af-form > p { font-size: 14px; line-height: 1.55; color: var(--af-text-2); }
.af-field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.af-field > span { font-size: 13px; font-weight: 600; color: var(--af-text); }
.af-field small { font-size: 12.5px; line-height: 1.45; color: var(--af-text-3); }
.af-field input, .af-field select, .af-copy input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--af-border); background: var(--af-card); color: var(--af-text); font: inherit; font-size: 15px; box-shadow: none; }
.af-field input:focus, .af-field select:focus, .af-copy input:focus { outline: none; border-color: var(--af-blue); box-shadow: 0 0 0 3px rgba(22,104,227,.15); }
.af-preview { font-family: ui-monospace, Menlo, monospace; word-break: break-all; }
.af-preview b { color: var(--af-blue); }
.af-check { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 14px; line-height: 1.5; color: var(--af-text); cursor: pointer; font-weight: 400; }
.af-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--af-blue); position: static; opacity: 1; }
.af-radios { display: flex; gap: 8px; }
.af-radios label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--af-border); font-size: 14px; font-weight: 600; color: var(--af-text); cursor: pointer; margin: 0; }
.af-radios label:has(input:checked) { border-color: var(--af-blue); background: var(--af-soft); color: var(--af-blue); }
.af-radios input { accent-color: var(--af-blue); margin: 0; position: static; opacity: 1; width: auto; height: auto; }
.af-row2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
.af-row2 .af-note { grid-column: 1 / -1; margin-top: 0 !important; }
.af [hidden] { display: none !important; }

.af-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--af-blue); color: #fff !important; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center; }
.af-btn:hover { background: var(--af-blue-2); }
.af-btn[disabled] { opacity: .45; cursor: not-allowed; }
.af-btn--sm { min-height: 40px; padding: 0 14px; font-size: 13.5px; border-radius: 999px; }
.af-btn--ghost { background: var(--af-soft); color: var(--af-blue) !important; }
.af-btn--ghost:hover { background: rgba(22,104,227,.16); }
.af-btn--danger { background: var(--af-err); }
.af-btn--danger:hover { background: #B91C1C; }
.af-btn.is-done { background: var(--af-ok); color: #fff !important; }
.af-form > .af-btn { align-self: flex-start; }
.af-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--af-border); }
.af-actions form { margin: 0; }

/* link */
.af-links { display: grid; gap: 16px; }
.af-linkrow label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--af-text); }
.af-linkrow small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--af-text-3); }
.af-copy { display: flex; gap: 8px; }
.af-copy input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; background: var(--af-bg); }
body.darkside .af-copy input { background: rgba(255,255,255,.04); }
.af-copy .af-btn { flex: 0 0 auto; min-height: 46px; }

/* saldi */
.af-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.af-kpi { padding: 16px 18px; border-radius: 24px; background: var(--af-card); border: 1px solid var(--af-border); min-width: 0; }
.af-kpi span { display: block; font-size: 12px; font-weight: 600; color: var(--af-text-3); }
.af-kpi b { display: block; margin-top: 6px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--af-text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-kpi b.is-up { color: var(--af-ok); } .af-kpi b.is-down { color: var(--af-err); }
.af-kpi small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: var(--af-text-3); }
.af-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 14px; border-radius: 18px; background: var(--af-card); border: 1px solid var(--af-border); overflow: hidden; }
.af-stats div { padding: 12px 14px; border-left: 1px solid var(--af-border); min-width: 0; }
.af-stats div:first-child { border-left: 0; }
.af-stats b { display: block; font-size: 20px; font-weight: 700; color: var(--af-text); font-variant-numeric: tabular-nums; }
.af-stats span { display: block; font-size: 12px; line-height: 1.35; color: var(--af-text-3); }
.af-stats--net { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-stats--net .af-stats__lv { margin-bottom: 2px; font-weight: 600; color: var(--af-text-2); }
.af-stats--net strong { color: var(--af-text); font-weight: 650; }

/* elenchi */
.af-list { list-style: none; margin: 0; padding: 0; }
.af-list li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--af-border); }
.af-list li:first-child { border-top: 0; }
.af-list--compact li { padding: 10px 4px; }
.af-card > .af-list--compact { margin-top: 14px; padding-top: 6px; border-top: 1px solid var(--af-border); }
.af-lvl { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: var(--af-blue); background: var(--af-soft); }
.af-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.af-who b { font-size: 14.5px; font-weight: 600; color: var(--af-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-who small { font-size: 12.5px; color: var(--af-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-amt { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.af-amt b { font-size: 14.5px; font-weight: 700; color: var(--af-text); font-variant-numeric: tabular-nums; }
.af-amt b.is-down { color: var(--af-err); }
.af-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--af-bg); color: var(--af-text-2); }
body.darkside .af-badge { background: rgba(255,255,255,.06); }
.af-badge--available, .af-badge--paid { background: var(--af-ok-bg) !important; color: var(--af-ok); }
.af-badge--pending, .af-badge--requested, .af-badge--processing { background: var(--af-soft) !important; color: var(--af-blue); }
.af-badge--review, .af-badge--blocked { background: var(--af-warn-bg) !important; color: var(--af-warn); }
.af-badge--reversed, .af-badge--rejected, .af-badge--failed { background: var(--af-err-bg) !important; color: var(--af-err); }

/* kit */
.af-details { border-top: 1px solid var(--af-border); }
.af-details:first-of-type { margin-top: 6px; }
.af-details summary { display: flex; align-items: center; gap: 8px; padding: 14px 2px; font-size: 15px; font-weight: 600; color: var(--af-text); cursor: pointer; list-style: none; }
.af-details summary::-webkit-details-marker { display: none; }
.af-details summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--af-text-3); border-bottom: 2px solid var(--af-text-3); transform: rotate(45deg); transition: transform .15s; }
.af-details[open] summary::after { transform: rotate(-135deg); }
.af-details summary small { padding: 1px 8px; border-radius: 999px; background: var(--af-soft); color: var(--af-blue); font-size: 11.5px; font-weight: 700; }
.af-kit-item { margin: 0 0 12px; padding: 14px; border-radius: 16px; background: var(--af-bg); }
body.darkside .af-kit-item, body.darkside .af-faq { background: rgba(255,255,255,.04); }
.af-kit-item p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: var(--af-text); word-break: break-word; }
.af-faq { margin: 0 0 10px; padding: 12px 14px; border-radius: 16px; background: var(--af-bg); }
.af-faq b { display: block; margin-bottom: 4px; font-size: 14px; color: var(--af-text); }
.af-faq p { font-size: 14px; line-height: 1.55; color: var(--af-text-2); }
.af-mats { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.af-mats a { display: inline-block; padding: 9px 14px; border-radius: 12px; background: var(--af-soft); font-size: 13.5px; font-weight: 600; }

/* piede */
.af-foot { margin: 18px 4px 0; font-size: 12.5px; line-height: 1.6; color: var(--af-text-3); }
.af-foot p { margin-bottom: 6px; }
.af-foot b { color: var(--af-text-2); }
.af-leave { margin-top: 10px; }
.af-leave summary { cursor: pointer; font-weight: 600; color: var(--af-text-2); }
.af-leave form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding: 16px; border-radius: 18px; border: 1px solid var(--af-border); background: var(--af-card); }
.af-leave form p { font-size: 13.5px; line-height: 1.5; color: var(--af-text-2); }
.af-leave .af-btn { align-self: flex-start; }

/* manuale */
/* indice: è un <nav> e core-ui.css (pagina con login) dà ancora a ogni <nav> lo stile del vecchio menu (fisso, alto 69px) */
.afm nav.afm-toc { position: static; left: auto; z-index: auto; width: auto; max-width: none; height: auto; margin: 0 0 14px; border: 1px solid var(--af-border); background: var(--af-card); box-shadow: none; transform: none; transition: none; overflow: visible; }
.afm-toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 24px; }
.afm-toc li { break-inside: avoid; padding: 3px 0; font-size: 13.5px; }
.afm-toc a { color: var(--af-text-2); }
.afm-toc a:hover { color: var(--af-blue); }
.afm-text section { padding: 4px 0 14px; scroll-margin-top: 90px; }
.afm-text section + section { border-top: 1px solid var(--af-border); padding-top: 18px; }
.afm-text h2 { font-size: 18px; margin: 0 0 10px; }
.afm-text p, .afm-text li { font-size: 15px; line-height: 1.65; color: var(--af-text-2); }
.afm-text p + p { margin-top: 10px; }
.afm-text strong { color: var(--af-text); }
.afm-text ul { margin: 8px 0 10px; padding-left: 20px; }
.afm-text li { margin: 3px 0; }
.afm-table { overflow-x: auto; margin: 12px 0; -webkit-overflow-scrolling: touch; }
.afm-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; }
.afm-table th, .afm-table td { padding: 10px; border-bottom: 1px solid var(--af-border); text-align: left; vertical-align: top; color: var(--af-text-2); }
.afm-table th { font-size: 12px; color: var(--af-text-3); font-weight: 700; }
.afm-table td:first-child { font-weight: 600; color: var(--af-text); }
body.afm-public { margin: 0; background: #F5F6F8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.afm-public .af { padding-top: 32px; }

@media (max-width: 720px) {
    .af { padding: 84px 16px 48px; }
    .afm-public .af { padding-top: 20px; }
    .af-head h1 { font-size: 24px; }
    .af-card { padding: 16px; border-radius: 18px; }
    .af-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .af-kpi { padding: 14px; }
    .af-kpi b { font-size: 19px; }
    .af-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .af-stats div:nth-child(3) { border-left: 0; }
    .af-stats div:nth-child(n+3) { border-top: 1px solid var(--af-border); }
    .af-stats--net { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .af-stats--net div:nth-child(3) { border-left: 1px solid var(--af-border); }
    .af-stats--net div:nth-child(n+3) { border-top: 0; }
    .af-stats--net div { padding: 10px; }
    .af-levels { grid-template-columns: 1fr; }
    .af-levels div { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; align-items: center; }
    .af-levels b { grid-row: span 2; margin: 0; font-size: 22px; }
    .af-levels span, .af-levels small { grid-column: 2; }
    .af-row2 { grid-template-columns: 1fr; }
    .af-actions { flex-direction: column; }
    .af-actions .af-btn, .af-form > .af-btn, .af-leave .af-btn { width: 100%; }
    .af-list li { gap: 10px; }
    .afm-toc ol { columns: 1; }
}

/* ==========================================================================
   STILE DELLA LANDING — pagina «Guadagna» (adesione) e dashboard del referente
   Colori di vivacità (.af-tone--*), adesivi inclinati, riquadri sfumati, isola scura, bordo sfumato che scorre.
   Luci = sfumature radiali (mai filter: blur); movimenti solo senza «riduci movimento».
   ========================================================================== */
.af { max-width: 1080px; padding-top: 40px; }
.af .af-tone--orange { --t: #F4511E; --t-rgb: 244, 81, 30; --t-soft: #FFF1EA; --t-text: #D13F0A; }
.af .af-tone--violet { --t: #7A4DFF; --t-rgb: 122, 77, 255; --t-soft: #F1ECFF; --t-text: #6B3FF0; }
.af .af-tone--blue { --t: #1668E3; --t-rgb: 22, 104, 227; --t-soft: #EAF2FF; --t-text: #1668E3; }
.af .af-tone--green { --t: #0B9E62; --t-rgb: 11, 158, 98; --t-soft: #E2F7EC; --t-text: #087A4B; }
.af .af-tone--pink { --t: #E11D6B; --t-rgb: 225, 29, 107; --t-soft: #FFE9F1; --t-text: #C3155B; }
body.darkside .af .af-tone--orange { --t-soft: rgba(244, 81, 30, .16); --t-text: #FF9A6C; }
body.darkside .af .af-tone--violet { --t-soft: rgba(122, 77, 255, .18); --t-text: #B79CFF; }
body.darkside .af .af-tone--blue { --t-soft: rgba(22, 104, 227, .18); --t-text: #7DB4FF; }
body.darkside .af .af-tone--green { --t-soft: rgba(11, 158, 98, .18); --t-text: #5FE0A6; }
body.darkside .af .af-tone--pink { --t-soft: rgba(225, 29, 107, .18); --t-text: #FF7FB0; }

/* Etichetta di sezione: pillola bianca con il puntino del marchio, uguale a quella della landing (Eyebrow in ui.tsx).
   Il vecchio trattino + scritta arancione è stato scartato dal titolare. --light = pillola di vetro sulle isole scure. */
.af-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 12px; border: 1px solid #E5E5EA; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; color: #1D1D1F; box-shadow: 0 1px 2px rgba(14, 13, 18, .05), 0 8px 20px -12px rgba(14, 13, 18, .28); }
.af-eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #FF8A3D, #F4511E 45%, #E11D6B); box-shadow: 0 0 0 3px #FFF1EA; }
.af-eyebrow--light,
body.darkside .af .af-eyebrow { border-color: rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; }
.af-eyebrow--light::before,
body.darkside .af .af-eyebrow::before { box-shadow: 0 0 0 3px rgba(255, 122, 77, .22); }
.af-hl { color: var(--sfy-orange-vivid, #F4511E); }
.af .af-h2 { margin: 12px 0 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; color: var(--af-text); text-wrap: balance; }
.af-head { margin-bottom: 22px; }
.af-head h1 { margin-top: 10px; font-size: 34px; font-weight: 600; letter-spacing: -.035em; }

/* adesivo: quadrato colorato inclinato con l'icona bianca */
.af-stk { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px; background: var(--t, #1668E3); color: #fff; box-shadow: 0 10px 20px -8px rgba(var(--t-rgb, 22, 104, 227), .7); transform: rotate(-6deg); transition: transform .3s ease; }
.af-stk--white { background: #fff; color: #E11D6B; box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .35); }

.af-btn { font-weight: 600; text-decoration: none !important; color: #fff !important; box-shadow: 0 8px 22px -6px rgba(22, 104, 227, .5); transition: background-color .2s, transform .2s; }
.af-btn:hover { transform: translateY(-2px); }
.af-btn--lg { min-height: 52px; padding: 0 26px; font-size: 15.5px; }
.af-btn--ghost { box-shadow: none; }
.af-btn--white { background: #fff; color: #1D1D1F !important; box-shadow: none; }
.af-btn--white:hover { background: #F5F5F7; }
.af-btn[disabled]:hover { transform: none; }
.af-btn svg { transition: transform .15s; }
.af-btn:hover svg { transform: translateX(2px); }

/* ---- prima schermata */
.af-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: 26px 0 40px; }
.af-hero::before { content: ""; position: absolute; z-index: -1; inset: -40px -60px 0; pointer-events: none;
    background:
        radial-gradient(closest-side, rgba(255, 138, 31, .2), transparent) 0 0 / 640px 380px no-repeat,
        radial-gradient(closest-side, rgba(225, 29, 107, .12), transparent) 55% 0 / 480px 340px no-repeat,
        radial-gradient(closest-side, rgba(122, 77, 255, .16), transparent) 100% 20% / 560px 420px no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
body.darkside .af-hero::before { opacity: .7; }
.af-hero h1 { margin: 16px 0 16px; font-size: clamp(34px, 4.6vw, 54px); font-weight: 600; line-height: 1.03; letter-spacing: -.045em; color: var(--af-text); text-wrap: balance; }
.af-hero p { font-size: 17px; line-height: 1.6; color: var(--af-text-2); }
.af-hero p b { color: var(--af-text); }
.af-ticks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; }
.af-ticks li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--af-card); box-shadow: 0 1px 2px rgba(14, 13, 18, .08); font-size: 13.5px; font-weight: 600; color: var(--af-text); }
.af-ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #0B9E62 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.af-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* riquadro «per ogni cliente»: bordo sfumato che scorre */
.af-hero__card { position: relative; padding: 26px 22px 20px; border: 2.5px solid transparent; border-radius: 30px;
    background: linear-gradient(var(--af-card), var(--af-card)) padding-box, linear-gradient(100deg, #F4511E 0%, #E11D6B 17.5%, #7A4DFF 34%, #1668E3 50%, #7A4DFF 66%, #E11D6B 82.5%, #F4511E 100%) border-box;
    background-size: auto, 200% 100%; box-shadow: 0 34px 80px -40px rgba(122, 77, 255, .6); }
.af-hero__badge { position: absolute; top: -20px; right: 20px; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: #FFB81F; color: #1D1D1F; box-shadow: 0 14px 26px -10px rgba(255, 184, 31, .9); transform: rotate(10deg); }
.af-hero__cap { font-size: 12.5px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--af-text-3) !important; }
.af-perlist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.af-perlist li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--t-soft); }
.af-perlist__pct { flex: 0 0 auto; min-width: 72px; font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--t); font-variant-numeric: tabular-nums; }
.af-perlist__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.af-perlist__txt b { font-size: 16.5px; font-weight: 700; color: var(--af-text); }
.af-perlist__txt small { font-size: 13px; line-height: 1.35; color: var(--af-text-2); }
.af-hero__foot { margin-top: 14px !important; font-size: 13px !important; line-height: 1.5 !important; color: var(--af-text-2) !important; }

/* ---- simulatore */
.af-sim { margin: 8px 0 22px; padding: 30px; border-radius: 32px; background: var(--af-card); border: 1px solid var(--af-border); box-shadow: 0 30px 60px -44px rgba(60, 40, 160, .45); scroll-margin-top: 90px; }
.af-sim__head h2 { margin: 10px 0 6px; font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.03em; }
.af-sim__head p { font-size: 15px; color: var(--af-text-2); }
.af-sim__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 26px; margin-top: 22px; align-items: stretch; }
.af-sim__inputs { display: flex; flex-direction: column; gap: 18px; }
.af-range { display: block; margin: 0; cursor: pointer; }
.af-range__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 14.5px; font-weight: 600; color: var(--af-text); }
.af-range__top small { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--t-text); }
.af-range__top b { min-width: 46px; padding: 3px 10px; border-radius: 999px; background: var(--t-soft); color: var(--t-text); text-align: center; font-variant-numeric: tabular-nums; }
/* cursori come sul sito: binario a pillola da 10px che si riempie con la sfumatura del colore, pomello bianco con il punto colorato */
.af-range input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; padding: 0; border: 0; background: transparent; outline: none; position: static; opacity: 1; cursor: pointer; touch-action: pan-y;
    --af-track: rgba(14, 13, 18, .08); --af-grad: linear-gradient(90deg, rgba(var(--t-rgb), .5), var(--t)) 0 0 / var(--af-fill, 0%) 100% no-repeat; }
body.darkside .af-range input { --af-track: rgba(255, 255, 255, .1); }
.af-range input::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: var(--af-grad), var(--af-track); }
.af-range input::-moz-range-track { height: 10px; border-radius: 999px; background: var(--af-grad), var(--af-track); }
.af-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -8px; border: 0; border-radius: 50%; background: radial-gradient(circle, var(--t) 0 5px, #fff 5.5px);
    box-shadow: 0 0 0 1px rgba(14, 13, 18, .06), 0 4px 12px -2px rgba(14, 13, 18, .28); transition: box-shadow .18s ease, transform .18s ease; }
.af-range input::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: radial-gradient(circle, var(--t) 0 5px, #fff 5.5px);
    box-shadow: 0 0 0 1px rgba(14, 13, 18, .06), 0 4px 12px -2px rgba(14, 13, 18, .28); transition: box-shadow .18s ease, transform .18s ease; }
.af-range input:hover::-webkit-slider-thumb, .af-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(var(--t-rgb), .18), 0 4px 12px -2px rgba(14, 13, 18, .28); }
.af-range input:hover::-moz-range-thumb, .af-range input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 7px rgba(var(--t-rgb), .18), 0 4px 12px -2px rgba(14, 13, 18, .28); }
.af-range input:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
.af-range input:active::-moz-range-thumb { transform: scale(1.12); cursor: grabbing; }
.af-sim__plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 14.5px; font-weight: 600; }
.af-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--af-bg); border: 1px solid var(--af-border); }
body.darkside .af-seg { background: rgba(255, 255, 255, .05); }
.af-seg button { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--af-text-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.af-seg button.is-on { background: var(--af-card); color: var(--af-text); box-shadow: 0 1px 3px rgba(14, 13, 18, .14); }
/* risultato: isola scura con le luci colorate */
.af-sim__out { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 26px; border-radius: 26px; color: #fff;
    background: #0B0A12 radial-gradient(closest-side, rgba(122, 77, 255, .55), transparent) -140px -180px / 440px 440px no-repeat; }
.af-sim__out::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(closest-side, rgba(244, 81, 30, .45), transparent) calc(100% + 140px) calc(100% + 160px) / 460px 460px no-repeat, radial-gradient(closest-side, rgba(22, 104, 227, .4), transparent) calc(100% + 160px) -160px / 380px 380px no-repeat; }
.af-sim__label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.af-sim__big { display: block; margin: 6px 0 16px; font-size: clamp(40px, 5vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(100deg, #FFB37A, #FF7FB0 55%, #C9A6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.af-sim__rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.af-sim__rows div { padding: 12px 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .07); }
.af-sim__rows span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.af-sim__rows b { display: block; margin-top: 4px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.af-sim__note { margin-top: 14px !important; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.af-sim--compact { margin: 0; padding: 4px 0 0; border: 0; box-shadow: none; background: none; }
.af-sim--compact .af-sim__head { display: none; }

/* ---- il piano che si paga da solo */
.af-free, .af-goal { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; padding: 22px 24px; border-radius: 28px; background: linear-gradient(135deg, #FFF3CF 0%, #FFF1EA 55%, #FFE9F1 100%); }
body.darkside .af-free, body.darkside .af-goal { background: linear-gradient(135deg, rgba(255, 184, 31, .16) 0%, rgba(244, 81, 30, .12) 55%, rgba(225, 29, 107, .12) 100%); }
.af-free__ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 17px; background: #FFB81F; color: #1D1D1F; box-shadow: 0 12px 24px -10px rgba(255, 184, 31, .9); transform: rotate(-6deg); }
.af-free h2, .af-goal h2 { margin: 0 0 4px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.af-free p, .af-goal p { font-size: 14.5px; line-height: 1.55; color: var(--af-text-2); }
.af-goal__body { flex: 1; min-width: 0; }
.af-goal__bar { height: 10px; margin: 12px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .7); overflow: hidden; }
body.darkside .af-goal__bar { background: rgba(255, 255, 255, .1); }
.af-goal__bar span { display: block; height: 100%; min-width: 10px; border-radius: inherit; background: linear-gradient(90deg, #F4511E, #E11D6B 60%, #7A4DFF); }
.af-goal small { font-size: 12.5px; font-weight: 600; color: var(--af-text-2); }

/* ---- come funziona: riquadro sfumato chiaro con il binario dei passi */
.af-panel { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 22px; padding: 34px 30px; border-radius: 32px; background: linear-gradient(155deg, #E6F0FF 0%, #F3EEFF 48%, #FFEDE3 100%); }
.af-panel::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(rgba(29, 29, 31, .13) 1px, transparent 1.5px) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(ellipse at top, #000, transparent 70%); mask-image: radial-gradient(ellipse at top, #000, transparent 70%); }
body.darkside .af-panel { background: linear-gradient(155deg, #151a2b 0%, #1a1630 48%, #241a1a 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
body.darkside .af-panel::before { background-image: radial-gradient(rgba(255, 255, 255, .15) 1px, transparent 1.5px); }
.af-track { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 30px 0 0; padding: 0; counter-reset: none; }
.af-track li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0; min-height: 0; }
.af-track li::before { content: none; }
.af-track li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 56px; right: -28px; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--t), #7A4DFF); }
.af-track li.af-tone--violet:not(:last-child)::after { background: linear-gradient(90deg, #7A4DFF, #1668E3); }
.af-track__n { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 50%; background: var(--t); color: #fff; font-size: 22px; font-weight: 700; box-shadow: 0 0 0 7px #fff, 0 12px 24px -8px rgba(var(--t-rgb), .75); }
body.darkside .af-track__n { box-shadow: 0 0 0 7px #1a1630, 0 12px 24px -8px rgba(var(--t-rgb), .75); }
.af-track b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--af-text); }
.af-track span:not(.af-track__n) { font-size: 14.5px; line-height: 1.55; color: var(--af-text-2); }

/* ---- a chi proporlo / come incassi: riquadri dai colori tenui */
.af-block { margin: 12px 0 30px; }
.af-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.af-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.af-tile { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 26px; background: var(--t-soft); transition: transform .3s ease, box-shadow .3s ease; }
.af-tile:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -24px rgba(14, 13, 18, .35); }
.af-tile:hover .af-stk { transform: rotate(0deg); }
.af-tile .af-stk { margin-bottom: 12px; }
.af-tile b { font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: var(--af-text); }
.af-tile p { font-size: 14px; line-height: 1.55; color: var(--af-text-2); }

/* ---- perché è facile da consigliare: isola scura con riquadri di vetro */
.af-dark { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 30px; padding: 40px 32px; border-radius: 32px; color: #fff;
    background: #0B0A12 radial-gradient(closest-side, rgba(122, 77, 255, .55), rgba(122, 77, 255, .2) 55%, transparent) -260px -300px / 800px 800px no-repeat; }
.af-dark::before { content: ""; position: absolute; z-index: -1; inset: 0;
    background: radial-gradient(closest-side, rgba(22, 104, 227, .5), rgba(22, 104, 227, .18) 55%, transparent) calc(100% + 300px) 10% / 760px 760px no-repeat,
        radial-gradient(closest-side, rgba(244, 81, 30, .45), rgba(244, 81, 30, .16) 55%, transparent) 15% calc(100% + 380px) / 760px 760px no-repeat; }
.af-dark .af-h2 { color: #fff; }
.af-glass { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.af-glass > div { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .07); transition: transform .3s ease, background-color .3s ease; }
.af-glass > div:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .11); }
.af-glass .af-stk { margin-bottom: 12px; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .7); }
.af-glass b { font-size: 17px; font-weight: 600; color: #fff; }
.af-glass p { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.af-glass a { color: #FFB37A; font-weight: 600; }

/* ---- modulo di adesione: bordo sfumato che scorre */
.af-joinbox { max-width: 640px; margin: 0 auto 20px; padding: 2.5px; border-radius: 32px; scroll-margin-top: 90px;
    background: linear-gradient(100deg, #F4511E 0%, #E11D6B 17.5%, #7A4DFF 34%, #1668E3 50%, #7A4DFF 66%, #E11D6B 82.5%, #F4511E 100%) 0 0 / 200% 100%; box-shadow: 0 34px 80px -44px rgba(122, 77, 255, .55); }
.af-joinbox__in { padding: 30px; border-radius: 30px; background: var(--af-card); }
.af-joinbox h2 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.af-joinbox .af-btn { align-self: stretch; }
.af-joinbox .af-field input { height: 50px; border-radius: 999px; padding: 0 18px; background: var(--af-bg); }
body.darkside .af-joinbox .af-field input { background: rgba(255, 255, 255, .05); }

/* ---- dashboard: il tuo link (fascia sfumata del marchio) */
.af-linkbox { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 16px; padding: 26px; border-radius: 30px; color: #fff; background: linear-gradient(120deg, #D63F0C 0%, #D81B66 52%, #6D3FF5 100%); box-shadow: 0 26px 54px -30px rgba(109, 63, 245, .8); }
.af-linkbox::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(rgba(255, 255, 255, .28) 1px, transparent 1.5px) 0 0 / 20px 20px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.af-linkbox__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.af-linkbox h2 { margin: 0 0 2px; font-size: 22px; font-weight: 600; color: #fff; }
.af-linkbox__head p { font-size: 14.5px; color: rgba(255, 255, 255, .9); }
.af-linkbox .af-copy input { height: 52px; border: 0; border-radius: 999px; padding: 0 20px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 14.5px; }
.af-linkbox .af-copy .af-btn { min-height: 52px; padding: 0 24px; }
.af-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.af-share__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff !important; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background-color .2s; }
.af-share__btn:hover { background: rgba(255, 255, 255, .22); }
.af-share__btn.is-done { background: #fff; color: #087A4B !important; }
.af-linkbox__note { margin-top: 16px !important; font-size: 12.5px; line-height: 1.55; color: rgba(255, 255, 255, .8); }
.af-linkbox__note b { color: #fff; }

/* ---- dashboard: numeri colorati */
.af-kpis { gap: 14px; margin-bottom: 14px; }
.af-kpi { border: 0; border-radius: 24px; padding: 18px; }
.af-kpi:nth-child(1) { background: #FFF3CF; } .af-kpi:nth-child(2) { background: #E2F7EC; } .af-kpi:nth-child(3) { background: #EAF2FF; } .af-kpi:nth-child(4) { background: #F1ECFF; }
body.darkside .af-kpi:nth-child(1) { background: rgba(255, 184, 31, .14); } body.darkside .af-kpi:nth-child(2) { background: rgba(11, 158, 98, .16); }
body.darkside .af-kpi:nth-child(3) { background: rgba(22, 104, 227, .16); } body.darkside .af-kpi:nth-child(4) { background: rgba(122, 77, 255, .16); }
.af-kpi span { color: var(--af-text-2); }
.af-kpi b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.af-kpi small { color: var(--af-text-2); }
.af-stats { border: 0; border-radius: 24px; gap: 12px; background: none; overflow: visible; }
.af-stats--net div { border: 0 !important; padding: 16px 18px; border-radius: 22px; background: var(--af-card); box-shadow: inset 0 0 0 1px var(--af-border); }
.af-stats--net div:nth-child(1) .af-stats__lv { color: #D13F0A; } .af-stats--net div:nth-child(2) .af-stats__lv { color: #6B3FF0; } .af-stats--net div:nth-child(3) .af-stats__lv { color: #1668E3; }
.af-stats--net b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }

.af-simbox { margin: 0 0 16px; padding: 4px 22px; border-radius: 28px; background: var(--af-card); border: 1px solid var(--af-border); }
.af-simbox > summary { display: flex; align-items: center; gap: 10px; padding: 16px 0; font-size: 16px; font-weight: 600; color: var(--af-text); cursor: pointer; list-style: none; }
.af-simbox > summary::-webkit-details-marker { display: none; }
.af-simbox > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--af-text-3); border-bottom: 2px solid var(--af-text-3); transform: rotate(45deg); transition: transform .2s; }
.af-simbox[open] > summary::after { transform: rotate(-135deg); }
.af-simbox[open] { padding-bottom: 22px; }
.af-simbox > summary svg { color: #0B9E62; }
.af-card { border-radius: 28px; padding: 22px; }
.af-card h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }

/* ---- movimento */
@keyframes af-pan { from { background-position: 0 0, 0% 0; } to { background-position: 0 0, 200% 0; } }
@keyframes af-pan1 { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes af-float { 0%, 100% { transform: rotate(10deg) translateY(0); } 50% { transform: rotate(10deg) translateY(-8px); } }
@keyframes af-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
    .af-hero__card { animation: af-pan 8s linear infinite; }
    .af-joinbox { animation: af-pan1 8s linear infinite; }
    .af-hero__badge { animation: af-float 5s ease-in-out infinite; }
    .af-hero__text > *, .af-hero__card, .af-sim, .af-free { animation-name: af-rise; animation-duration: .55s; animation-timing-function: cubic-bezier(.21, .47, .32, .98); animation-fill-mode: both; }
    .af-hero__card { animation: af-rise .55s cubic-bezier(.21, .47, .32, .98) .2s both, af-pan 8s linear infinite; }
    .af-hero__text > :nth-child(2) { animation-delay: .05s; } .af-hero__text > :nth-child(3) { animation-delay: .1s; }
    .af-hero__text > :nth-child(4) { animation-delay: .15s; } .af-hero__text > :nth-child(5) { animation-delay: .2s; }
    .af-sim { animation-delay: .3s; } .af-free { animation-delay: .36s; }
}

@media (max-width: 960px) {
    .af-hero { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .af-sim__grid { grid-template-columns: minmax(0, 1fr); }
    .af-tiles, .af-glass { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .af { padding-top: 24px; }
    .af-hero { padding-top: 10px; }
    .af-hero p { font-size: 15.5px; }
    .af-hero__cta .af-btn { width: 100%; }
    .af-perlist__pct { min-width: 60px; font-size: 28px; }
    .af-sim { padding: 20px 16px; border-radius: 26px; }
    .af-sim__rows { grid-template-columns: minmax(0, 1fr); }
    .af-free, .af-goal { flex-direction: column; align-items: flex-start; padding: 20px; }
    .af-panel { padding: 26px 18px; border-radius: 26px; }
    .af-track { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .af-track li { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 16px; }
    .af-track__n { grid-row: span 2; margin: 0; }
    .af-track li:not(:last-child)::after { top: 54px; left: 25px; right: auto; bottom: -22px; width: 5px; height: auto; background: linear-gradient(180deg, var(--t), #7A4DFF); }
    .af-tiles, .af-tiles--3, .af-glass { grid-template-columns: minmax(0, 1fr); }
    .af-dark { padding: 28px 18px; border-radius: 26px; }
    .af-joinbox__in { padding: 22px 18px; }
    .af-linkbox { padding: 20px 16px; border-radius: 26px; }
    .af-linkbox .af-copy { flex-direction: column; }
    .af-kpis { gap: 10px; }
    .af-stats--net { gap: 8px; }
    .af-stats--net div { padding: 12px; }
    .af-stats--net b { font-size: 22px; }
}

/* correzioni: pulsante chiaro leggibile, luce della prima schermata dentro la pagina sul telefono */
.af .af-btn--ghost { color: var(--af-blue) !important; background: var(--af-card); box-shadow: inset 0 0 0 1px var(--af-border); }
.af .af-btn--ghost:hover { background: var(--af-soft); }
body.darkside .af .af-btn--ghost { color: #7DB4FF !important; }
@media (max-width: 720px) { .af-hero::before { inset: -24px 0 0; } }
@media (max-width: 720px) { .af-linkbox .af-copy input, .af .af-copy input { flex: none; height: 48px; } }

/* ---- esempi pronti nel simulatore */
.af-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.af-presets > span { margin-right: 4px; font-size: 14.5px; font-weight: 600; color: var(--af-text); }
.af-presets button { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 14px; border: 1px solid var(--af-border); border-radius: 16px; background: var(--af-card); color: var(--af-text); font: inherit; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
.af-presets button:hover { transform: translateY(-1px); border-color: #F4511E; }
.af-presets button b { font-size: 13.5px; font-weight: 700; }
.af-presets button small { font-size: 12.5px; font-weight: 600; color: #087A4B; font-variant-numeric: tabular-nums; }
body.darkside .af-presets button small { color: #5FE0A6; }
.af-presets button.is-on { border-color: #F4511E; background: #FFF1EA; }
body.darkside .af-presets button.is-on { background: rgba(244, 81, 30, .16); }

/* ---- traguardi */
.af-goal { align-items: flex-start; }
.af-ms { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; }
.af-ms li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 600; color: var(--af-text-2); }
body.darkside .af-ms li { background: rgba(255, 255, 255, .07); }
.af-ms__dot { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--af-bg); color: var(--af-text-3); font-size: 12px; font-weight: 700; }
body.darkside .af-ms__dot { background: rgba(255, 255, 255, .08); }
.af-ms li.is-done { color: var(--af-text); }
.af-ms li.is-done .af-ms__dot { background: var(--t); color: #fff; transform: rotate(-6deg); box-shadow: 0 6px 12px -6px rgba(var(--t-rgb), .8); }
.af-ms li.is-next { box-shadow: inset 0 0 0 2px var(--t); color: var(--af-text); }
.af-ms li.is-next .af-ms__dot { background: var(--t-soft); color: var(--t-text); }
