/**
 * /affiliate landing page.
 *
 * Loaded only for affiliate-landing-page.php, on top of bloomlab-design-tokens.css.
 * Mobile first; every breakpoint is min-width except the small-screen overrides
 * at the end. Palette is the BloomLab nav teal plus the campaign gold already
 * used on /reviewbloom, so the page reads as part of the same brand system.
 */

:root {
    --af-ink: #0C2B2E;
    --af-deep: #123F45;
    --af-deep-2: #0A2528;
    --af-teal: #1D6F6A;
    --af-mint: #E7F4F1;
    --af-pearl: #F7FAF9;
    /* Body-text greens and golds are darkened from the brand display values so
     * they clear 4.5:1 on white. The bright brand tones stay on dark surfaces. */
    --af-green: #00754B;
    --af-gold: #F0B94E;
    --af-gold-soft: #F5D08A;
    --af-gold-deep: #D99A1F;
    --af-gold-text: #9A5F00;
    --af-muted: #5A7B7C;
    --af-white: #FFFFFF;
    --af-line: rgba(18, 63, 69, 0.12);
    --af-line-light: rgba(255, 255, 255, 0.16);
    --af-radius-card: 24px;
    --af-radius-input: 14px;
    --af-radius-pill: 999px;
    --af-shadow: 0 18px 42px rgba(12, 43, 46, 0.10);
    --af-shadow-lift: 0 22px 48px rgba(12, 43, 46, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--af-pearl);
    color: var(--af-ink);
    font-family: var(--bloom-font-family, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    font-weight: 600;
    line-height: var(--bloom-line-height-body, 1.6);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* The promo popup has no place on a signup funnel. bloomlab-popup-promo.php
 * bails out when it computes `display: none`, so hiding it here cannot orphan
 * the body scroll lock. */
body .bloomlab-popup-overlay,
body #bloomlab-popup-overlay {
    display: none !important;
}

.af-page,
.af-page * {
    box-sizing: border-box;
}

/* Any `display` declaration outranks the UA stylesheet's `[hidden]` rule, so
 * without this the success panel (display: grid) renders next to the form it
 * is supposed to replace. Keep this above every component rule. */
.af-page [hidden] {
    display: none !important;
}

.af-page img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Clear the sticky site header when a CTA jumps to an anchor, and when focus
 * moves a form control into view. */
.af-page [id] {
    scroll-margin-top: 96px;
}

.af-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: var(--bloom-side-padding, 24px);
}

/* ------------------------------------------------------------------ */
/* Shared type + controls                                              */
/* ------------------------------------------------------------------ */

.af-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 7px 15px;
    border: 1px solid rgba(18, 63, 69, 0.14);
    border-radius: var(--af-radius-pill);
    background: var(--af-white);
    color: var(--af-teal);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
}

.af-eyebrow-light {
    border-color: rgba(240, 185, 78, 0.42);
    background: rgba(240, 185, 78, 0.16);
    color: var(--af-gold-soft);
}

.af-hero h1,
.af-section-head h2,
.af-reward-panel h2,
.af-signup-copy h2 {
    margin: 18px 0 0;
    font-weight: var(--bloom-font-weight-extrabold, 800);
    line-height: var(--bloom-line-height-tight, 1.1);
    letter-spacing: -0.01em;
}

.af-section-head h2,
.af-reward-panel h2,
.af-signup-copy h2 {
    font-size: var(--bloom-font-h2, clamp(2.2rem, 4.5vw, 3.4rem));
}

.af-accent {
    color: var(--af-gold);
}

.af-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    margin-top: 30px;
}

.af-actions-center {
    align-items: center;
    justify-content: center;
}

.af-btn,
.af-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 0;
    border-radius: var(--af-radius-pill);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.af-btn {
    padding: 14px 28px;
    cursor: pointer;
}

.af-btn-block {
    width: 100%;
}

.af-btn-gold {
    background: var(--af-gold);
    color: var(--af-ink);
    box-shadow: 0 14px 26px rgba(217, 154, 31, 0.26);
}

.af-btn-gold:hover,
.af-btn-gold:focus-visible {
    background: var(--af-gold-deep);
    color: var(--af-ink);
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(217, 154, 31, 0.32);
}

.af-btn-dark {
    background: var(--af-deep);
    color: var(--af-white);
    box-shadow: 0 14px 26px rgba(12, 43, 46, 0.20);
}

.af-btn-dark:hover,
.af-btn-dark:focus-visible {
    background: var(--af-ink);
    color: var(--af-white);
    transform: translateY(-2px);
}

.af-btn-outline {
    background: transparent;
    border: 2px solid var(--af-deep);
    color: var(--af-deep);
}

.af-btn-outline:hover,
.af-btn-outline:focus-visible {
    background: var(--af-deep);
    color: var(--af-white);
    transform: translateY(-2px);
}

.af-btn[disabled] {
    opacity: 0.62;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.af-link {
    min-height: 46px;
    padding: 10px 8px;
    color: var(--af-deep);
}

.af-link:hover,
.af-link:focus-visible {
    color: var(--af-teal);
}

.af-link-light {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.af-link-light:hover,
.af-link-light:focus-visible {
    color: var(--af-gold);
}

.af-page a:focus-visible,
.af-page button:focus-visible,
.af-page summary:focus-visible,
.af-page input:focus-visible,
.af-page select:focus-visible {
    outline: 3px solid var(--af-gold);
    outline-offset: 3px;
}

.af-section-head {
    max-width: 780px;
    margin: 0 auto 36px;
    text-align: center;
}

.af-section-head p {
    margin: 18px 0 0;
    color: var(--af-teal);
    font-size: var(--bloom-font-lead, 1.15rem);
    line-height: var(--bloom-line-height-body, 1.6);
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.af-hero {
    position: relative;
    overflow: hidden;
    padding: var(--bloom-hero-padding-top-mobile, 40px) 0 56px;
    background:
        radial-gradient(circle at 88% 8%, rgba(240, 185, 78, 0.22), transparent 42%),
        radial-gradient(circle at 4% 92%, rgba(78, 205, 196, 0.16), transparent 46%),
        linear-gradient(150deg, var(--af-deep) 0%, var(--af-deep-2) 100%);
    color: var(--af-white);
}

.af-hero-grid {
    display: grid;
    gap: 34px;
    align-items: center;
}

.af-hero h1 {
    font-size: var(--bloom-font-h1, clamp(2.5rem, 5vw, 3.8rem));
    color: var(--af-white);
}

.af-hero-sub {
    margin: 20px 0 0;
    color: var(--af-gold-soft);
    font-size: var(--bloom-font-lead, 1.15rem);
    font-weight: 800;
}

.af-hero-body {
    max-width: 620px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: var(--bloom-font-body, 1.05rem);
    font-weight: 500;
}

.af-hero-card {
    display: grid;
    gap: 20px;
    align-content: start;
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid var(--af-line-light);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 22px 50px rgba(5, 20, 22, 0.34);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.af-hero-card-label {
    color: var(--af-gold-soft);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.af-hero-figures {
    display: grid;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--af-line-light);
}

.af-hero-figure {
    display: grid;
    gap: 4px;
}

.af-hero-figure-num {
    color: var(--af-gold);
    font-size: clamp(2.6rem, 7vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
}

.af-hero-figure-cap {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    font-weight: 600;
}

.af-hero-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.af-hero-list li {
    position: relative;
    padding-left: 32px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.af-hero-list li::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(240, 185, 78, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F0B94E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}

/* ------------------------------------------------------------------ */
/* Proof                                                               */
/* ------------------------------------------------------------------ */

.af-proof {
    padding: 60px 0;
    background: var(--af-white);
}

.af-stat-grid {
    display: grid;
    gap: 18px;
}

.af-stat-card {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 26px 24px;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-card);
    background: linear-gradient(180deg, var(--af-white), var(--af-pearl));
    box-shadow: 0 14px 30px rgba(12, 43, 46, 0.06);
    text-align: center;
}

.af-stat-num {
    color: var(--af-deep);
    font-size: clamp(1.7rem, 4.4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
}

.af-stat-cap {
    color: var(--af-teal);
    font-size: 0.98rem;
    font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Commission + leaderboard                                            */
/* ------------------------------------------------------------------ */

.af-commission {
    padding: 60px 0;
    background:
        linear-gradient(135deg, rgba(231, 244, 241, 0.96), rgba(255, 255, 255, 0.96)),
        linear-gradient(90deg, rgba(78, 205, 196, 0.16), rgba(240, 185, 78, 0.16));
}

.af-board {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--af-line);
    border-radius: 28px;
    background: var(--af-white);
    box-shadow: var(--af-shadow);
}

.af-board-title {
    margin: 0 0 26px;
    color: var(--af-deep);
    font-size: var(--bloom-font-h3, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
}

/* ------------------------------------------------------------------ */
/* Product commission cards                                            */
/* ------------------------------------------------------------------ */

.af-section-sub {
    margin: 14px 0 0;
    color: var(--af-deep) !important;
    font-size: var(--bloom-font-h3, 1.35rem);
    font-weight: 800;
    line-height: 1.3;
}

.af-product-grid {
    display: grid;
    gap: 18px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.af-product-card {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 22px;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-card);
    background: var(--af-white);
    box-shadow: 0 14px 30px rgba(12, 43, 46, 0.06);
}

.af-product-name {
    margin: 0;
    color: var(--af-deep);
    font-size: var(--bloom-font-h3, 1.35rem);
    font-weight: 800;
    line-height: 1.2;
}

/* The listing screenshot sits on white already, so a hairline is all that
 * separates it from the card. */
.af-product-shot {
    width: 100%;
    height: auto;
    border: 1px solid var(--af-line);
    border-radius: 14px;
}

.af-product-rates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.af-product-rates > div {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--af-mint);
    text-align: center;
}

.af-product-rates dt {
    color: var(--af-teal);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

.af-product-rates dd {
    margin: 0;
    color: var(--af-deep);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
}

.af-rate-note {
    margin: 0 0 34px;
    color: var(--af-teal);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* ------------------------------------------------------------------ */
/* Programme terms                                                     */
/* ------------------------------------------------------------------ */

.af-terms {
    max-width: 900px;
    margin: 0 auto 34px;
    padding: clamp(24px, 4vw, 34px);
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-card);
    background: var(--af-white);
    box-shadow: 0 12px 26px rgba(12, 43, 46, 0.05);
    scroll-margin-top: 96px;
}

.af-terms h3 {
    margin: 0 0 12px;
    color: var(--af-deep);
    font-size: var(--bloom-font-h3, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
}

.af-terms-lead {
    margin: 0 0 18px;
    padding: 12px 16px;
    border: 1px solid rgba(217, 154, 31, 0.28);
    border-radius: 14px;
    background: rgba(240, 185, 78, 0.14);
    color: var(--af-ink);
    font-size: 1rem;
    font-weight: 800;
}

.af-terms-intro {
    margin: 0 0 12px;
    color: var(--af-teal);
    font-size: var(--bloom-font-body, 1.05rem);
    font-weight: 700;
}

.af-terms ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.af-terms li {
    position: relative;
    padding-left: 30px;
    color: var(--af-teal);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
}

.af-terms li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 117, 75, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300754B' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.af-terms-foot {
    margin: 18px 0 0;
    color: var(--af-teal);
    font-size: 0.9rem;
    font-weight: 600;
}

.af-board-intro {
    max-width: 760px;
    margin: 0 auto 30px;
    color: var(--af-teal);
    font-size: var(--bloom-font-lead, 1.15rem);
    font-weight: 500;
    line-height: var(--bloom-line-height-body, 1.6);
    text-align: center;
}

.af-board-sub {
    margin: -14px 0 24px;
    color: var(--af-teal);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
}

.af-board-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Each row is a real TikTok Shop leaderboard screenshot. The shots have white
 * backgrounds, so the hairline card is what separates one from the next. */
.af-board-row {
    padding: 4px;
    border: 1px solid var(--af-line);
    border-radius: 16px;
    background: var(--af-white);
}

.af-board-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Shown only when the asset folder has not been deployed. */
.af-board-fallback {
    display: block;
    padding: 14px 16px;
    color: var(--af-teal);
    font-size: 0.98rem;
    font-weight: 600;
}

.af-board-fallback strong {
    margin-right: 10px;
    color: var(--af-deep);
    font-weight: 800;
}

.af-board-note {
    margin: 26px 0 0;
    color: var(--af-teal);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

/* ------------------------------------------------------------------ */
/* Screenshots (real proof)                                            */
/* ------------------------------------------------------------------ */

.af-shot {
    display: grid;
    gap: 10px;
    margin: 0;
}

.af-shot img {
    width: 100%;
    height: auto;
    border: 1px solid var(--af-line);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(12, 43, 46, 0.08);
}

.af-shot figcaption {
    color: var(--af-teal);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.af-shot-store {
    max-width: 720px;
    margin: 0 auto 34px;
}

/* ------------------------------------------------------------------ */
/* Proof gallery                                                       */
/* ------------------------------------------------------------------ */

.af-gallery {
    padding: 60px 0;
    background: var(--af-white);
}

/* Columns rather than grid: the screenshots have different aspect ratios, and
 * a masonry flow packs them without stretching or cropping anyone's message. */
.af-gallery-grid {
    column-count: 1;
    column-gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.af-gallery-grid li {
    break-inside: avoid;
    margin: 0 0 18px;
}

.af-community {
    display: grid;
    gap: 22px;
    align-items: center;
    max-width: 900px;
    margin: 12px auto 0;
    padding: clamp(22px, 4vw, 32px);
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-card);
    background: linear-gradient(180deg, var(--af-white), var(--af-pearl));
    box-shadow: 0 14px 30px rgba(12, 43, 46, 0.06);
}

.af-shot-community img {
    border-radius: 16px;
}

.af-community-copy h3 {
    margin: 0 0 10px;
    color: var(--af-deep);
    font-size: var(--bloom-font-h3, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
}

.af-community-copy p {
    margin: 0;
    color: var(--af-teal);
    font-size: var(--bloom-font-body, 1.05rem);
    font-weight: 500;
    line-height: var(--bloom-line-height-body, 1.6);
}

/* ------------------------------------------------------------------ */
/* Reward panel                                                        */
/* ------------------------------------------------------------------ */

.af-reward {
    padding: 60px 0;
    background: var(--af-white);
}

.af-reward-panel {
    padding: clamp(30px, 5vw, 56px);
    border-radius: 32px;
    background:
        radial-gradient(circle at 92% 10%, rgba(240, 185, 78, 0.24), transparent 46%),
        linear-gradient(140deg, var(--af-deep) 0%, var(--af-deep-2) 100%);
    box-shadow: var(--af-shadow-lift);
    color: var(--af-white);
    text-align: center;
}

.af-reward-panel h2 {
    color: var(--af-white);
}

.af-reward-panel p {
    max-width: 720px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--bloom-font-lead, 1.15rem);
    font-weight: 500;
}

.af-reward-panel .af-actions {
    align-items: center;
    justify-content: center;
}

/* With the Creator of the Month poster alongside, the panel stops being a
 * centred statement and becomes a copy/evidence pair. */
.af-reward-panel--split {
    display: grid;
    gap: 28px;
    align-items: center;
    text-align: left;
}

.af-reward-panel--split p {
    margin-inline: 0;
}

.af-reward-panel--split .af-actions {
    align-items: stretch;
    justify-content: flex-start;
}

.af-reward-shot {
    display: grid;
    gap: 10px;
    margin: 0;
    justify-items: center;
}

.af-reward-shot img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(5, 20, 22, 0.34);
}

.af-reward-shot figcaption {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    font-weight: 600;
    text-align: center;
}

/* ------------------------------------------------------------------ */
/* Support grid                                                        */
/* ------------------------------------------------------------------ */

.af-support {
    padding: 60px 0;
    background: var(--af-pearl);
}

.af-support-grid {
    display: grid;
    gap: 18px;
}

.af-support-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 28px 24px;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-card);
    background: var(--af-white);
    box-shadow: 0 14px 30px rgba(12, 43, 46, 0.06);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.af-support-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--af-shadow);
}

.af-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--af-deep), var(--af-teal));
    color: var(--af-gold);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.af-support-card h3,
.af-step-body h3 {
    margin: 0;
    color: var(--af-deep);
    font-size: var(--bloom-font-h3, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
}

.af-card-lead {
    margin: 0;
    color: var(--af-green);
    font-size: 1rem;
    font-weight: 800;
}

.af-support-card p,
.af-step-body p {
    margin: 0;
    color: var(--af-teal);
    font-size: var(--bloom-font-body, 1.05rem);
    font-weight: 500;
    line-height: var(--bloom-line-height-body, 1.6);
}

/* ------------------------------------------------------------------ */
/* Steps timeline                                                      */
/* ------------------------------------------------------------------ */

.af-steps {
    padding: 60px 0;
    background:
        linear-gradient(135deg, rgba(231, 244, 241, 0.96), rgba(255, 255, 255, 0.96)),
        linear-gradient(90deg, rgba(78, 205, 196, 0.16), rgba(240, 185, 78, 0.16));
}

.af-step-list {
    position: relative;
    display: grid;
    gap: 22px;
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.af-step {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

/* Connector between the numbered markers. */
.af-step:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 56px;
    left: 27px;
    width: 2px;
    height: calc(100% - 34px);
    background: linear-gradient(180deg, rgba(29, 111, 106, 0.36), rgba(29, 111, 106, 0.08));
}

.af-step-num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 3px solid rgba(240, 185, 78, 0.7);
    border-radius: 50%;
    background: var(--af-deep);
    color: var(--af-gold);
    font-size: 1.05rem;
    font-weight: 800;
}

.af-step-body {
    display: grid;
    gap: 8px;
    padding: 18px 22px;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-card);
    background: var(--af-white);
    box-shadow: 0 12px 26px rgba(12, 43, 46, 0.06);
}

.af-steps .af-actions {
    margin-top: 36px;
}

/* ------------------------------------------------------------------ */
/* Signup                                                              */
/* ------------------------------------------------------------------ */

.af-signup {
    padding: 60px 0;
    background: var(--af-white);
}

.af-signup-grid {
    display: grid;
    gap: 32px;
    align-items: start;
}

.af-signup-copy h2 {
    color: var(--af-deep);
}

.af-signup-copy > p {
    margin: 20px 0 0;
    color: var(--af-teal);
    font-size: var(--bloom-font-lead, 1.15rem);
    font-weight: 500;
}

.af-signup-points {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.af-signup-points li {
    position: relative;
    padding-left: 30px;
    color: var(--af-teal);
    font-size: 1rem;
    font-weight: 600;
}

.af-signup-points li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 117, 75, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300754B' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.af-signup-points a {
    color: var(--af-deep);
    font-weight: 800;
}

.af-form-card {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--af-line);
    border-radius: 28px;
    background: linear-gradient(180deg, var(--af-white), var(--af-pearl));
    box-shadow: var(--af-shadow-lift);
}

.af-form-title {
    margin: 0;
    color: var(--af-deep);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.af-form-note {
    margin: 8px 0 24px;
    color: var(--af-teal);
    font-size: 0.9rem;
    font-weight: 600;
}

.af-field {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.af-field label {
    color: var(--af-deep);
    font-size: 0.95rem;
    font-weight: 800;
}

.af-req {
    color: var(--af-gold-text);
}

.af-optional {
    color: var(--af-teal);
    font-weight: 600;
}

.af-field input,
.af-field select {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1.5px solid rgba(18, 63, 69, 0.18);
    border-radius: var(--af-radius-input);
    background: var(--af-white);
    color: var(--af-ink);
    font-family: inherit;
    /* 16px floor stops iOS Safari zooming the viewport on focus. */
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.af-field input::placeholder {
    color: var(--af-muted);
    opacity: 1;
}

.af-field select {
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123F45' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px 18px;
}

.af-field input:focus,
.af-field select:focus {
    border-color: var(--af-teal);
    box-shadow: 0 0 0 4px rgba(29, 111, 106, 0.12);
}

.af-field input.af-input-invalid,
.af-field select.af-input-invalid {
    border-color: #C0392B;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.10);
}

.af-input-prefix {
    display: flex;
    align-items: stretch;
    border: 1.5px solid rgba(18, 63, 69, 0.18);
    border-radius: var(--af-radius-input);
    background: var(--af-white);
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.af-input-prefix:focus-within {
    border-color: var(--af-teal);
    box-shadow: 0 0 0 4px rgba(29, 111, 106, 0.12);
}

.af-input-prefix > span {
    display: inline-flex;
    align-items: center;
    padding: 0 4px 0 16px;
    color: var(--af-teal);
    font-size: 1rem;
    font-weight: 800;
}

.af-input-prefix input {
    border: 0;
    border-radius: 0;
    padding-left: 4px;
}

.af-input-prefix input:focus {
    box-shadow: none;
}

.af-error {
    margin: 0;
    color: #C0392B;
    font-size: 0.88rem;
    font-weight: 700;
}

/* Honeypot: off-screen rather than display:none, so bots that skip hidden
 * inputs still fill it. Never announced, never tabbable. */
.af-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#af-submit {
    margin-top: 8px;
}

.af-form-status {
    margin: 14px 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}

.af-form-status:empty {
    margin: 0;
}

.af-form-status-error {
    color: #C0392B;
}

.af-form-privacy {
    margin: 16px 0 0;
    color: var(--af-teal);
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
}

.af-form-success {
    display: grid;
    gap: 14px;
    justify-items: center;
    padding: 12px 0;
    text-align: center;
}

.af-form-success:focus {
    outline: none;
}

.af-success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 117, 75, 0.14);
    color: var(--af-green);
}

.af-success-mark svg {
    width: 30px;
    height: 30px;
}

.af-form-success h3 {
    margin: 0;
    color: var(--af-deep);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.25;
}

.af-form-success p {
    margin: 0;
    color: var(--af-teal);
    font-size: 1rem;
    font-weight: 500;
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */

.af-faq {
    padding: 60px 0 40px;
    background: var(--af-pearl);
}

.af-faq-list {
    display: grid;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
}

.af-faq-item {
    border: 1px solid var(--af-line);
    border-radius: 20px;
    background: var(--af-white);
    box-shadow: 0 10px 24px rgba(12, 43, 46, 0.05);
    overflow: hidden;
}

.af-faq-item summary {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 16px 22px;
    color: var(--af-deep);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

.af-faq-item summary::-webkit-details-marker {
    display: none;
}

.af-faq-icon {
    position: relative;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(29, 111, 106, 0.10);
}

.af-faq-icon::before,
.af-faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2.4px;
    border-radius: 2px;
    background: var(--af-teal);
    transform: translate(-50%, -50%);
    transition: transform 200ms ease, opacity 200ms ease;
}

.af-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.af-faq-item[open] .af-faq-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}

.af-faq-item > p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--af-teal);
    font-size: var(--bloom-font-body, 1.05rem);
    font-weight: 500;
    line-height: var(--bloom-line-height-body, 1.6);
}

/* ------------------------------------------------------------------ */
/* Fine print + scroll top                                             */
/* ------------------------------------------------------------------ */

.af-fineprint {
    padding: 0 0 52px;
    background: var(--af-pearl);
}

.af-fineprint .af-wrap {
    display: grid;
    gap: 10px;
    max-width: 820px;
    text-align: center;
}

.af-fineprint p {
    margin: 0;
    color: var(--af-teal);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.6;
}

.af-fineprint a {
    color: var(--af-deep);
    font-weight: 800;
}

.af-scroll-top {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: 88px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--af-deep);
    color: var(--af-white);
    box-shadow: 0 14px 30px rgba(12, 43, 46, 0.26);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, visibility 180ms ease;
}

.af-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.af-scroll-top:hover,
.af-scroll-top:focus-visible {
    background: var(--af-teal);
}

.af-scroll-top svg {
    width: 24px;
    height: 24px;
}

/* ------------------------------------------------------------------ */
/* Breakpoints                                                         */
/* ------------------------------------------------------------------ */

@media (min-width: 600px) {
    .af-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .af-gallery-grid {
        column-count: 2;
    }
}

@media (min-width: 780px) {
    .af-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .af-support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .af-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .af-hero-figures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (min-width: 980px) {
    .af-hero {
        padding: var(--bloom-hero-padding-top, 80px) 0 84px;
    }

    .af-hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.8fr);
        gap: 52px;
    }

    .af-signup-grid {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
        gap: 48px;
    }

    .af-gallery-grid {
        column-count: 3;
        column-gap: 22px;
    }

    .af-gallery-grid li {
        margin-bottom: 22px;
    }

    .af-reward-panel--split {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
        gap: 44px;
    }

    .af-reward-panel--split .af-actions {
        align-items: center;
    }

    .af-community {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 30px;
    }

    /* Five products: three across, then two centred, rather than a ragged 3+2. */
    .af-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .af-product-card {
        grid-column: span 2;
    }

    .af-product-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .af-product-card:nth-child(5) {
        grid-column: 4 / span 2;
    }

    .af-proof,
    .af-commission,
    .af-reward,
    .af-support,
    .af-gallery,
    .af-steps,
    .af-signup {
        padding: 84px 0;
    }

    .af-faq {
        padding: 84px 0 48px;
    }

    .af-step {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 22px;
    }

    .af-step-num {
        width: 64px;
        height: 64px;
        font-size: 1.15rem;
    }

    .af-step:not(:last-child)::before {
        top: 64px;
        left: 31px;
        height: calc(100% - 42px);
    }
}

@media (max-width: 599px) {
    .af-btn,
    .af-link {
        width: 100%;
    }

    .af-hero h1 {
        font-size: var(--bloom-font-h1-mobile, 2.2rem);
    }

    .af-section-head h2,
    .af-reward-panel h2,
    .af-signup-copy h2 {
        font-size: var(--bloom-font-h2-mobile, 2.2rem);
    }

    .af-scroll-top {
        right: max(16px, env(safe-area-inset-right));
        bottom: 92px;
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .af-btn,
    .af-link,
    .af-support-card,
    .af-scroll-top,
    .af-faq-icon::before,
    .af-faq-icon::after {
        transition: none;
    }

    .af-support-card:hover {
        transform: none;
    }
}
