/* Affiliates page (/affiliates/). Builds on modern-home.css and product-guide.css. */

.tt-affiliates-site h1,
.tt-affiliates-site h2 {
    margin: 0;
    font-family: var(--tt-display);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 0.92;
    text-transform: uppercase;
}

.tt-aff-head {
    max-width: 640px;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.tt-aff-head h2 {
    font-size: clamp(2.3rem, 5vw, 3.8rem);
}

.tt-aff-head p:not(.tt-kicker) {
    margin: 18px 0 0;
    color: var(--tt-muted);
    line-height: 1.65;
}

/* Hero */

.tt-aff-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(72px, 10vw, 148px) 0 clamp(40px, 5vw, 60px);
    border-bottom: 1px solid var(--tt-line-soft);
}

.tt-aff-hero-bg {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
}

.tt-aff-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 40%;
    animation: tt-aff-drift 24s ease-in-out infinite alternate;
}

.tt-aff-hero-bg::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(7, 7, 6, 0.96) 0%, rgba(7, 7, 6, 0.82) 32%, rgba(7, 7, 6, 0.2) 62%, rgba(7, 7, 6, 0.35) 100%),
        linear-gradient(180deg, rgba(7, 7, 6, 0.55) 0%, transparent 22%, transparent 62%, var(--tt-bg) 100%);
}

@keyframes tt-aff-drift {
    from {
        transform: scale(1.04) translateX(0);
    }

    to {
        transform: scale(1.1) translateX(-1.5%);
    }
}

.tt-aff-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: clamp(32px, 5vw, 72px);
    min-height: clamp(420px, 46vw, 600px);
}

.tt-aff-hero-copy {
    align-self: center;
    animation: tt-aff-rise 800ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tt-aff-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    padding: 7px 14px 7px 12px;
    border: 1px solid var(--tt-line);
    border-radius: 999px;
    background: rgba(17, 16, 15, 0.6);
    backdrop-filter: blur(10px);
    color: var(--tt-orange-soft);
    font-family: var(--tt-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tt-aff-badge i {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tt-orange);
}

.tt-aff-badge i::after {
    position: absolute;
    inset: 0;
    content: "";
    border-radius: 50%;
    background: var(--tt-orange);
    animation: tt-aff-ping 1.8s ease-out infinite;
}

@keyframes tt-aff-ping {
    to {
        transform: scale(2.8);
        opacity: 0;
    }
}

.tt-aff-hero-copy h1 {
    font-size: clamp(3.4rem, 8.6vw, 7.6rem);
    line-height: 0.86;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}

.tt-aff-hero-copy h1 span {
    display: block;
    background: linear-gradient(92deg, var(--tt-orange) 10%, var(--tt-orange-soft) 50%, var(--tt-orange) 90%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    animation: tt-aff-sheen 6s linear infinite;
}

@keyframes tt-aff-sheen {
    to {
        background-position: -200% 0;
    }
}

.tt-aff-hero-copy > p:not(.tt-aff-badge) {
    max-width: 500px;
    margin: 26px 0 0;
    color: #cfc4b9;
    font-size: 1.08rem;
    line-height: 1.65;
}

.tt-aff-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.tt-aff-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    color: var(--tt-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.tt-aff-hero-points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tt-aff-hero-points li::before {
    width: 14px;
    height: 14px;
    content: "";
    border-radius: 50%;
    background: rgba(255, 90, 10, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='%23ff8a3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}

@keyframes tt-aff-rise {
    from {
        transform: translateY(24px);
        opacity: 0;
    }
}

/* Live cards over the photo */

.tt-aff-live {
    display: grid;
    justify-items: end;
    gap: 14px;
    animation: tt-aff-rise 900ms 250ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tt-aff-toasts {
    position: relative;
    width: min(100%, 330px);
    height: 64px;
}

.tt-aff-toast {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px 0 12px;
    border: 1px solid rgba(255, 138, 61, 0.34);
    border-radius: 12px;
    background: rgba(17, 13, 10, 0.72);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    animation: tt-aff-toast 9s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
    animation-delay: calc(var(--n) * 3s);
}

@keyframes tt-aff-toast {
    0% {
        transform: translateY(14px) scale(0.97);
        opacity: 0;
    }

    5%,
    30% {
        transform: none;
        opacity: 1;
    }

    35%,
    100% {
        transform: translateY(-14px) scale(0.97);
        opacity: 0;
    }
}

.tt-aff-toast-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--tt-orange);
    color: #100a06;
    font-family: var(--tt-display);
    font-size: 1.3rem;
    font-weight: 800;
}

.tt-aff-toast-copy {
    display: grid;
    min-width: 0;
}

.tt-aff-toast-copy b {
    font-size: 0.86rem;
}

.tt-aff-toast-copy small {
    overflow: hidden;
    color: var(--tt-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tt-aff-toast strong {
    margin-left: auto;
    color: var(--tt-orange-soft);
    font-family: var(--tt-display);
    font-size: 1.35rem;
    font-weight: 800;
}

.tt-aff-month {
    width: min(100%, 330px);
    padding: 20px;
    border: 1px solid rgba(255, 138, 61, 0.3);
    border-radius: 14px;
    background: rgba(17, 13, 10, 0.68);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 50px rgba(255, 90, 10, 0.1);
}

.tt-aff-month-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--tt-muted);
    font-family: var(--tt-mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tt-aff-month-head em {
    padding: 3px 8px;
    border: 1px solid var(--tt-line-soft);
    border-radius: 999px;
    color: var(--tt-faint);
    font-size: 0.58rem;
    font-style: normal;
}

.tt-aff-month-total {
    margin: 12px 0 0;
    font-family: var(--tt-display);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 0.9;
}

.tt-aff-month-total span,
.tt-aff-month-total small {
    color: var(--tt-orange);
    font-size: 0.55em;
}

.tt-aff-month-total span {
    margin-right: 2px;
    vertical-align: 0.6em;
    font-size: 0.42em;
}

.tt-aff-month-sub,
.tt-aff-month-next {
    margin: 8px 0 0;
    color: var(--tt-muted);
    font-size: 0.8rem;
}

.tt-aff-month-sub b,
.tt-aff-month-next b {
    color: var(--tt-text);
}

.tt-aff-month-bar {
    height: 6px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(247, 242, 234, 0.08);
}

.tt-aff-month-bar i {
    display: block;
    width: var(--p);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tt-orange), var(--tt-orange-soft));
    box-shadow: 0 0 14px rgba(255, 90, 10, 0.6);
    transform-origin: left;
    animation: tt-aff-fill 1.4s 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes tt-aff-fill {
    from {
        transform: scaleX(0);
    }
}

.tt-aff-month-next {
    font-size: 0.74rem;
}

/* Stat strip */

.tt-aff-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: clamp(32px, 4vw, 52px) 0 0;
    border-block: 1px solid var(--tt-line-soft);
}

.tt-aff-stats div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 8px;
    padding: 26px 22px;
}

.tt-aff-stats div + div {
    border-left: 1px solid var(--tt-line-soft);
}

.tt-aff-stats dd {
    margin: 0;
    font-family: var(--tt-display);
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1;
}

.tt-aff-stats div:first-child dd {
    color: var(--tt-orange);
}

.tt-aff-stats dt {
    color: var(--tt-muted);
    font-size: 0.85rem;
}

/* Steps */

.tt-aff-steps,
.tt-aff-bonus,
.tt-aff-perks {
    padding: clamp(64px, 9vw, 112px) 0 0;
}

.tt-aff-step-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tt-aff-step-list li {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--tt-line-soft);
    border-radius: 10px;
    background: var(--tt-surface);
    transition-delay: calc(var(--n) * 90ms);
}

.tt-aff-step-list span {
    color: var(--tt-orange);
    font-family: var(--tt-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.tt-aff-step-list h3,
.tt-aff-perk h3 {
    margin: 14px 0 8px;
    font-family: var(--tt-display);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.tt-aff-step-list p,
.tt-aff-perk p {
    margin: 0;
    color: var(--tt-muted);
    line-height: 1.6;
}

/* Bonus ladder */

.tt-aff-bonus-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: end;
    gap: clamp(32px, 6vw, 80px);
}

.tt-aff-bonus .tt-aff-head {
    margin-bottom: 0;
}

.tt-aff-ladder {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    height: 320px;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--tt-line);
    list-style: none;
}

.tt-aff-ladder li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: var(--h);
    padding: 16px 12px;
    border: 1px solid var(--tt-line);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, rgba(255, 90, 10, calc(0.08 + var(--n) * 0.05)), rgba(255, 90, 10, 0.02));
}

.tt-aff-ladder li:last-child {
    border-color: var(--tt-orange);
    background: linear-gradient(180deg, rgba(255, 90, 10, 0.42), rgba(255, 90, 10, 0.06));
    box-shadow: 0 0 50px rgba(255, 90, 10, 0.18);
}

.tt-aff-ladder strong {
    font-family: var(--tt-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
}

.tt-aff-ladder span {
    color: var(--tt-muted);
    font-family: var(--tt-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tt-aff-ladder span b {
    display: block;
    color: var(--tt-text);
    font-size: 1rem;
}

/* Perks */

.tt-aff-perk-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tt-aff-perk {
    padding: 28px 24px;
    border: 1px solid var(--tt-line-soft);
    border-radius: 10px;
    background: var(--tt-surface);
    transition: border-color 180ms ease, transform 180ms ease;
    transition-delay: calc(var(--n) * 90ms);
}

.tt-aff-perk:hover {
    border-color: var(--tt-line);
}

.tt-aff-perk-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--tt-line);
    border-radius: 10px;
    background: rgba(255, 90, 10, 0.08);
}

.tt-aff-perk-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--tt-orange-soft);
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.tt-aff-perk-icon svg path[d^="M19.5"] {
    fill: var(--tt-orange-soft);
    stroke: none;
}

.tt-aff-perk-icon .is-live {
    fill: var(--tt-orange);
    stroke: none;
}

.tt-affiliates-site .tt-guide-story-faq {
    margin-top: clamp(64px, 9vw, 112px);
}

/* Phones and tablets */

@media (max-width: 980px) {
    .tt-aff-hero-grid,
    .tt-aff-bonus-grid {
        grid-template-columns: 1fr;
    }

    .tt-aff-hero-grid {
        min-height: 0;
    }

    .tt-aff-hero-bg img {
        object-position: 72% 30%;
    }

    .tt-aff-hero-bg::after {
        background:
            linear-gradient(180deg, rgba(7, 7, 6, 0.5) 0%, rgba(7, 7, 6, 0.78) 34%, rgba(7, 7, 6, 0.9) 70%, var(--tt-bg) 100%),
            linear-gradient(90deg, rgba(7, 7, 6, 0.7), transparent 70%);
    }

    .tt-aff-live {
        justify-items: start;
    }

    .tt-aff-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tt-aff-stats div:nth-child(3) {
        border-left: 0;
    }

    .tt-aff-stats div:nth-child(n + 3) {
        border-top: 1px solid var(--tt-line-soft);
    }

    .tt-aff-step-list,
    .tt-aff-perk-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .tt-aff-stats div {
        padding: 20px 14px;
    }

    .tt-aff-actions .tt-button {
        flex: 1 1 100%;
    }

    .tt-aff-ladder {
        gap: 6px;
        height: 260px;
    }

    .tt-aff-ladder li {
        padding: 12px 6px;
    }

    .tt-aff-ladder strong {
        font-size: 1.35rem;
    }

    .tt-aff-ladder span {
        font-size: 0.56rem;
        letter-spacing: 0.04em;
    }
}
