/* ============================================================
   Finance Partner landing - REDESIGN PREVIEW (Task-2387)
   Shown on /finance-partner?design=new in development only. Full width, in
   the look of the new partner portal (partner-portal.css + the motion
   preview): soft rounded shapes, mint/forest, gentle motion.
   Tokens come from finance-partner-landing.css (--fpl-*), which still loads
   for the sign-in and Submit a deal pop-ups.
   ============================================================ */

.fpl2 {
    --f2-forest: #143a21;
    --f2-mint: #83ffc0;
    --f2-mint-pale: #edfff5;
    --f2-mint-soft: #daffed;
    --f2-ink: #434343;
    --f2-muted: #6b7280;
    --f2-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --f2-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --f2-shadow: 0 10px 40px rgba(20, 58, 33, 0.07), 0 1px 3px rgba(20, 58, 33, 0.05);
    --f2-display: "Sora", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--f2-ink);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: clip;
    background: #fff;
}
.fpl2 h1, .fpl2 h2, .fpl2 h3 { font-family: var(--f2-display); color: var(--f2-ink); margin: 0; }
.fpl2 p { margin: 0; }
.fpl2 a { transition: none; }

.fpl2 {
    /* One gutter for the whole page; it grows with the screen so a wide
       monitor is filled rather than framed by empty margins. */
    --f2-gutter: clamp(20px, 4.5vw, 110px);
    --f2-panel-gap: clamp(10px, 1.2vw, 22px);
    /* Content stops growing at this width. Backgrounds still run edge to
       edge, but on a 2560px monitor text lines and cards don't stretch. */
    --f2-content: 1760px;
}
.fpl2-wrap { width: 100%; max-width: calc(var(--f2-content) + 2 * var(--f2-gutter)); margin: 0 auto; padding: 0 var(--f2-gutter); box-sizing: border-box; }
/* Laptops: the same 1240px column as the rest of the site (styles.css .wrap),
   so this page lines up with the others. Wide monitors keep the full width. */
@media (max-width: 1599px) {
    .fpl2 { --f2-content: 1240px; --f2-gutter: 20px; }
}
/* .fpl2-h1 is declared further down, so its laptop size is set after it. */
.fpl2-section { padding: clamp(64px, 9vw, 128px) 0; }
.fpl2-tint { background: linear-gradient(180deg, #f6fbf8 0%, #f1faf5 100%); }

/* Section headings sit on the left, like the portal's page titles. */
.fpl2-head { text-align: left; max-width: 880px; margin: 0 0 clamp(36px, 4vw, 64px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.fpl2-head.left { margin: 0; }
.fpl2-kicker {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 700; color: #1a7a4a;
    background: var(--f2-mint-pale); border-radius: 999px; padding: 6px 14px;
}
.fpl2-h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.fpl2-lead { font-size: clamp(17px, 1.3vw, 20px); color: var(--f2-muted); }
.fpl2-fine { font-size: 13px; color: var(--f2-muted); }

/* ---------------- Buttons ---------------- */
.fpl2-btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    border-radius: 999px; padding: 15px 28px; font-size: 17px; font-weight: 700; line-height: 1.2;
    text-decoration: none !important; border: 1.5px solid transparent; cursor: pointer;
    transition: transform 0.35s var(--f2-ease), box-shadow 0.35s var(--f2-ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.fpl2-btn .bi-arrow-right { transition: transform 0.35s var(--f2-ease); }
.fpl2-btn:hover { transform: translateY(-2px); }
.fpl2-btn:hover .bi-arrow-right { transform: translateX(4px); }
.fpl2-btn:active { transform: scale(0.96); transition-duration: 0.08s; }
.fpl2-btn-forest { background: var(--f2-forest); color: #fff !important; }
.fpl2-btn-forest:hover { box-shadow: 0 12px 28px rgba(20, 58, 33, 0.22), 0 0 0 4px rgba(131, 255, 192, 0.35); }
.fpl2-btn-forest::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(131, 255, 192, 0.45) 50%, transparent 70%);
    transform: translateX(-120%);
}
.fpl2-btn-forest:hover::after { transform: translateX(120%); transition: transform 0.8s var(--f2-ease); }
.fpl2-btn-light { background: #fff; color: var(--f2-forest) !important; border-color: #8fe3b7; }
.fpl2-btn-light:hover { background: var(--f2-mint-pale); box-shadow: 0 10px 24px rgba(20, 58, 33, 0.08); }
.fpl2-btn-mint { background: var(--f2-mint); color: var(--f2-forest) !important; }
.fpl2-btn-mint:hover { background: #aaffce; box-shadow: 0 12px 30px rgba(131, 255, 192, 0.35); }
.fpl2-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, 0.4); }
.fpl2-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.fpl2-link { color: var(--f2-forest) !important; font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }

/* ---------------- Hero ----------------
   A big rounded panel, like the Home banner inside the portal, filling the
   screen under the nav. Its text lines up with the page gutter below it. */
.fpl2-hero { padding: var(--f2-panel-gap) var(--f2-panel-gap) 0; }
.fpl2-hero-panel {
    position: relative; overflow: hidden;
    min-height: calc(100vh - 80px - 2 * var(--f2-panel-gap));
    border-radius: clamp(28px, 2.6vw, 48px);
    padding: clamp(24px, 4.5vh, 72px) calc(var(--f2-gutter) - var(--f2-panel-gap)) clamp(20px, 3.5vh, 48px);
    box-sizing: border-box;
    display: flex; flex-direction: column; gap: clamp(18px, 3.5vh, 56px);
    background:
        radial-gradient(60% 80% at 82% 40%, rgba(131, 255, 192, 0.42), transparent 70%),
        linear-gradient(110deg, #ffffff 0%, #f1fcf6 45%, #daffed 100%);
    box-shadow: 0 10px 40px rgba(20, 58, 33, 0.06);
}
.fpl2-hero-grid { flex: 1; width: 100%; max-width: var(--f2-content); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 4vw, 120px); align-items: center; }
.fpl2-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 2.6vh, 32px); }
.fpl2-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: clamp(14px, 0.85vw, 17px); font-weight: 600;
    background: #fff; border-radius: 999px; padding: 8px 16px 8px 12px; box-shadow: var(--f2-shadow);
}
.fpl2-eyebrow .bi { color: #1a9960; }
.fpl2-h1 {
    font-size: clamp(38px, min(4.3vw, 7.6vh), 96px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.06;
}
@media (max-width: 1599px) {
    /* Sized for the 1240px column, so the headline keeps to three lines. */
    .fpl2-h1 { font-size: clamp(38px, min(3.6vw, 7.6vh), 56px); }
}
/* All three phrases share one cell on their own line(s), so the headline
   never changes height and "where you" never strands on a line by itself. */
.fpl2-rot { display: grid; }
.fpl2-nowrap { white-space: nowrap; }
.fpl2-rot-item {
    grid-area: 1 / 1; opacity: 0; transform: translateY(0.3em);
    transition: opacity 0.35s var(--f2-ease), transform 0.5s var(--f2-spring);
}
.fpl2-rot-item.on { opacity: 1; transform: none; }
/* A mint marker stroke under the words, drawn in from the left on each swap.
   `clone` gives every wrapped line its own stroke. */
.fpl2-mark {
    background: linear-gradient(var(--f2-mint), var(--f2-mint)) no-repeat 0 88% / 100% 0.32em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    padding: 0 0.04em;
}
.fpl2-rot-item.on .fpl2-mark { animation: f2-mark 0.7s 0.15s var(--f2-ease) both; }
@keyframes f2-mark { from { background-size: 0% 0.32em; } }
/* Hero buttons grow with big screens so they don't look tiny under the headline. */
.fpl2-hero .fpl2-btn { padding: clamp(14px, 0.95vw, 20px) clamp(24px, 1.7vw, 36px); font-size: clamp(16px, 1vw, 20px); }

/* Quick facts strip along the bottom of the hero panel. */
.fpl2-facts {
    list-style: none; margin: 0; padding: clamp(20px, 1.6vw, 28px) 0 0;
    width: 100%; max-width: var(--f2-content); margin-inline: auto;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 24px);
    border-top: 1.5px dashed rgba(20, 58, 33, 0.14);
}
.fpl2-fact { display: flex; align-items: center; gap: 14px; font-size: clamp(14px, 0.85vw, 16px); color: #555; line-height: 1.3; }
.fpl2-fact > span:last-child { display: flex; flex-direction: column; }
.fpl2-fact b { font-family: var(--f2-display); font-size: clamp(22px, 1.7vw, 32px); font-weight: 800; color: var(--f2-ink); letter-spacing: -0.03em; line-height: 1.15; }
.fpl2-fact-icon {
    flex-shrink: 0; width: clamp(44px, 3vw, 56px); height: clamp(44px, 3vw, 56px); border-radius: 50%;
    display: grid; place-items: center; font-size: clamp(18px, 1.2vw, 22px);
    background: #fff; color: var(--f2-forest); box-shadow: var(--f2-shadow);
    transition: transform 0.45s var(--f2-spring);
}
.fpl2-fact:nth-child(2) .fpl2-fact-icon { color: #4f3cc9; }
.fpl2-fact:nth-child(3) .fpl2-fact-icon { color: #a06a00; }
.fpl2-fact:hover .fpl2-fact-icon { transform: rotate(-8deg) scale(1.1); }

.fpl2-hero-sub { font-size: clamp(18px, 1.3vw, 24px); max-width: 34em; color: #555; }
.fpl2-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fpl2-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: clamp(14px, 0.85vw, 17px); color: var(--f2-muted); }
.fpl2-rating { color: var(--f2-ink) !important; text-decoration: none !important; font-weight: 500; }
.fpl2-rating b { font-weight: 800; }
.fpl2-stars { color: #f5b400; letter-spacing: 1px; }
.fpl2-dot { width: 4px; height: 4px; border-radius: 50%; background: #c9d3cd; }

/* Hero copy arrives on load, one line after another (no script needed). */
.fpl2-in { animation: f2-rise 0.8s var(--f2-ease) both; animation-delay: calc(var(--d, 0) * 110ms + 0.1s); }

/* --- the portal in miniature --- */
.fpl2-hero-art { position: relative; padding: clamp(28px, 5vh, 44px) 20px clamp(40px, 7vh, 64px); width: 100%; max-width: 720px; justify-self: end; animation: f2-rise-big 1s 0.35s var(--f2-ease) both; }
/* On big screens the miniature portal grows with the hero instead of
   floating small in the middle of it. */
/* Laptops: a short screen gets a slightly smaller card, so the hero and its
   facts strip fit above the fold. Big monitors: a taller screen gets a bigger
   one. Desktop layout only (two columns). */
@media (min-width: 981px) and (max-height: 820px) { .fpl2-hero-art { zoom: 0.9; } }
@media (min-width: 981px) and (max-height: 720px) { .fpl2-hero-art { zoom: 0.82; } }
@media (min-width: 1700px) and (min-height: 950px) { .fpl2-hero-art { zoom: 1.12; } }
@media (min-width: 2200px) and (min-height: 1200px) { .fpl2-hero-art { zoom: 1.25; } }
.fpl2-pv {
    position: relative; background: #fff; border-radius: 32px; box-shadow: 0 30px 80px rgba(20, 58, 33, 0.14), 0 2px 6px rgba(20, 58, 33, 0.05);
    padding: 26px; display: flex; flex-direction: column; gap: 18px;
    transform: rotate(-0.75deg); animation: f2-bob 7s ease-in-out infinite;
}
.fpl2-pv-top { display: flex; align-items: center; gap: 10px; font-family: var(--f2-display); font-weight: 700; font-size: 18px; }
.fpl2-wave { display: inline-block; transform-origin: 70% 75%; animation: f2-wave 2.4s 1.4s ease-in-out infinite; }
.fpl2-pv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fpl2-pv-stats > div {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
    border-radius: 999px; padding: 8px 14px 8px 8px; background: linear-gradient(100deg, #fff 30%, #eafff3 100%);
    box-shadow: 0 0 0 1px #eef5f1;
}
.fpl2-pv-stats > div.gold { background: linear-gradient(100deg, #fff 30%, #fff5d9 100%); }
.fpl2-pv-stats .ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--f2-mint-soft); color: var(--f2-forest); font-size: 16px; }
.fpl2-pv-stats > div:first-child { background: linear-gradient(100deg, #fff 30%, #f1eeff 100%); }
.fpl2-pv-stats > div:first-child .ic { background: #ece9fe; color: #4f3cc9; }
.fpl2-pv-stats .gold .ic { background: #fff1c7; color: #8a5a00; }
.fpl2-pv-stats b { font-family: var(--f2-display); font-size: clamp(15px, 1.25vw, 20px); line-height: 1.1; }
.fpl2-pv-stats small { font-size: 12px; color: var(--f2-muted); line-height: 1.2; }
.fpl2-pv-list { display: flex; flex-direction: column; gap: 6px; }
.fpl2-pv-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; }
.fpl2-pv-row:nth-child(odd) { background: #fafcfb; }
.fpl2-pv-row .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--f2-mint-soft); color: var(--f2-forest); flex-shrink: 0; }
.fpl2-pv-row:nth-child(2) .ic { background: #ece9fe; color: #4f3cc9; }
.fpl2-pv-row .who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.fpl2-pv-row .who b { font-size: 15px; }
.fpl2-pv-row .who small { font-size: 13px; color: var(--f2-muted); }
.fpl2-pv-pill { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: #f1f1f1; color: #666; }
.fpl2-pv-pill.approved { background: #e6efff; color: #2852b8; }
/* --- the hero's story loop (HeroPreview sets the classes) --- */
/* the whole card leans a little towards the mouse */
.fpl2-pv-tilt {
    position: relative;
    transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fpl2-pv.resetting { opacity: 0.55; transition: opacity 0.35s; }
.fpl2-pv { transition: opacity 0.5s; }

/* stat pills bump when their number changes */
.fpl2-pv-stats > div.bump { animation: f2-bump 0.6s var(--f2-spring); }
.fpl2-pv-stats > div.bump b { color: #1a7a4a; transition: color 0.4s; }

/* between loops the top row's contents fade into the next customer */
.fpl2-pv-row.live :is(.ic, .who, .fpl2-pv-status) { transition: opacity 0.35s, transform 0.45s var(--f2-ease); }
.fpl2-pv-row.live.swap :is(.ic, .who, .fpl2-pv-status) { opacity: 0; transform: translateY(-6px); }
.fpl2-pv-row.live { position: relative; background: var(--f2-mint-pale); box-shadow: inset 0 0 0 1px #c6f5dc; transition: background 0.4s, box-shadow 0.4s; }
.fpl2-pv-row.live.won { background: #d9ffec; box-shadow: inset 0 0 0 1.5px var(--f2-mint), 0 10px 26px rgba(20, 58, 33, 0.1); }

/* its status pill swaps with a little pop */
.fpl2-pv-status { position: relative; width: 92px; height: 26px; flex-shrink: 0; }
.fpl2-pv-status em {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; font-style: normal;
    font-size: 12px; font-weight: 700; border-radius: 999px;
    opacity: 0; transform: scale(0.6) translateY(6px);
    transition: opacity 0.25s, transform 0.45s var(--f2-spring);
}
.fpl2-pv-status em.on { opacity: 1; transform: none; }
.fpl2-pv-status .s1 { background: #fff1c7; color: #8a5a00; }
.fpl2-pv-status .s2 { background: #e6efff; color: #2852b8; }
.fpl2-pv-status .s3 { background: var(--f2-forest); color: var(--f2-mint); }

/* confetti from the settled pill */
.fpl2-pv-burst { position: absolute; right: 56px; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 2; }
.fpl2-pv-burst i {
    position: absolute; left: -4px; top: -5px; width: 8px; height: 10px; border-radius: 2px; background: var(--c);
    animation: f2-burst-out 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.fpl2-pv-burst i:nth-child(3n) { border-radius: 50%; width: 7px; height: 7px; }
@keyframes f2-burst-out {
    0% { transform: rotate(var(--a)) translateY(0) scale(0.4); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: rotate(var(--a)) translateY(-78px) rotate(200deg) scale(1); opacity: 0; }
}

/* "Deal settled!" pops in over the top corner while the deal is settled */
.fpl2-pv-toast {
    position: absolute; top: -34px; right: -14px; z-index: 3; display: flex; align-items: center; gap: 12px;
    background: var(--f2-forest); color: #fff; border-radius: 22px; padding: 12px 18px 12px 12px;
    box-shadow: 0 18px 40px rgba(20, 58, 33, 0.3);
    opacity: 0; transform: translateY(16px) scale(0.85); pointer-events: none;
    transition: opacity 0.3s, transform 0.5s var(--f2-spring);
}
.fpl2-pv-toast.show { opacity: 1; transform: none; transition-delay: 0.35s; }
.fpl2-pv-toast .ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(131, 255, 192, 0.18); display: grid; place-items: center; font-size: 18px; }
.fpl2-pv-toast.show .ic { animation: f2-wiggle 1.2s 0.6s ease-in-out; }
.fpl2-pv-toast b { display: block; font-size: 15px; }
.fpl2-pv-toast small { font-size: 13px; color: #b9f7d6; }

/* "New referral sent" floats below, and pings as the deal arrives */
.fpl2-pv-chip {
    position: absolute; left: -18px; bottom: -48px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 700;
    box-shadow: 0 14px 34px rgba(20, 58, 33, 0.14); animation: f2-float 6s 0.5s ease-in-out infinite;
}
.fpl2-pv-chip .bi { color: #1a9960; }
.fpl2-pv-chip.ping .bi { animation: f2-pop 0.5s var(--f2-spring); }
.fpl2-pv-chip.ping { box-shadow: 0 14px 34px rgba(20, 58, 33, 0.14), 0 0 0 6px rgba(131, 255, 192, 0.45); transition: box-shadow 0.4s; }


/* ---------------- Two ways in ---------------- */
.fpl2-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.fpl2-way {
    position: relative; overflow: hidden; border-radius: 36px; padding: clamp(28px, 3vw, 48px);
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    box-shadow: var(--f2-shadow);
    transition: transform 0.35s var(--f2-ease), box-shadow 0.35s var(--f2-ease);
}
.fpl2-way:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(20, 58, 33, 0.12); }
.fpl2-way.mint { background: linear-gradient(150deg, #ffffff 0%, #edfff5 55%, #c9ffe3 100%); }
.fpl2-way.lilac { background: linear-gradient(150deg, #ffffff 0%, #f5f3ff 55%, #e6e1ff 100%); }
.fpl2-way h3 { font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; letter-spacing: -0.03em; }
.fpl2-way p { font-size: 17px; max-width: 460px; }
.fpl2-way .fpl2-btn { margin-top: auto; }
.fpl2-way-icon {
    width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; font-size: 26px;
    background: var(--f2-mint); color: var(--f2-forest);
    transition: transform 0.45s var(--f2-spring);
}
.fpl2-way.lilac .fpl2-way-icon { background: #ddd6ff; color: #4f3cc9; }
.fpl2-way:hover .fpl2-way-icon { transform: rotate(-8deg) scale(1.08); }
.fpl2-way-steps, .fpl2-way-perks { list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.fpl2-way-steps li, .fpl2-way-perks li {
    display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.85);
    border-radius: 999px; padding: 7px 14px 7px 7px; font-size: 15px; font-weight: 600;
}
.fpl2-way-perks li { padding-left: 12px; }
.fpl2-way-steps span { width: 24px; height: 24px; border-radius: 50%; background: var(--f2-forest); color: #fff; display: grid; place-items: center; font-size: 12px; }
.fpl2-way-perks .bi { color: #4f3cc9; font-size: 17px; }

/* ---------------- How it works ---------------- */
.fpl2-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 40px); position: relative; }
/* the dotted line joining the three steps draws itself in */
.fpl2-steps::before {
    content: ''; position: absolute; top: 44px; left: 16%; right: 16%; height: 3px;
    background: repeating-linear-gradient(90deg, #8fe3b7 0 10px, transparent 10px 18px);
    transform-origin: left; transform: scaleX(0); transition: transform 1.4s 0.3s var(--f2-ease);
}
.fpl2-steps.in::before { transform: scaleX(1); }
.fpl2-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0 12px; }
.fpl2-step-icon {
    position: relative; z-index: 1; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; font-size: 34px; color: var(--f2-forest); box-shadow: var(--f2-shadow), 0 0 0 8px #f3fbf7;
}
.fpl2-step:nth-child(2) .fpl2-step-icon { color: #4f3cc9; box-shadow: var(--f2-shadow), 0 0 0 8px #f1eeff; }
.fpl2-step:nth-child(2) .fpl2-step-no { color: #4f3cc9; }
.fpl2-step-no { font-size: 13px; font-weight: 800; color: #1a9960; letter-spacing: 0.08em; margin-top: 8px; }
.fpl2-step h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.fpl2-step p { max-width: 320px; color: #555; }

/* ---------------- Earn ---------------- */
.fpl2-earn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.fpl2-earn-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.fpl2-tiers { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 520px; margin-top: 8px; }
.fpl2-tier {
    display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 999px; padding: 10px 24px 10px 10px;
    box-shadow: var(--f2-shadow); transition: transform 0.35s var(--f2-ease);
}
.fpl2-tier:hover { transform: translateX(6px); }
.fpl2-tier-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--f2-mint-soft); display: grid; place-items: center; font-size: 20px; color: var(--f2-forest); }
.fpl2-tier:nth-child(3) .fpl2-tier-icon { background: #fff1c7; color: #8a5a00; }
.fpl2-tier-name { flex: 1; display: flex; flex-direction: column; font-weight: 800; font-family: var(--f2-display); font-size: 18px; line-height: 1.2; }
.fpl2-tier-name small { font-family: inherit; font-weight: 500; font-size: 14px; color: var(--f2-muted); font-family: "proxima-nova", Helvetica, Arial, sans-serif; }
.fpl2-tier-pct { font-family: var(--f2-display); font-weight: 800; font-size: 26px; color: #1a7a4a; }
.fpl2-bonus { display: flex; align-items: center; gap: 12px; background: #fff8e6; border-radius: 22px; padding: 14px 18px; font-size: 16px; }
.fpl2-bonus > span { font-size: 26px; animation: f2-wiggle 3s 1s ease-in-out infinite; display: inline-block; }

.fpl2-calc {
    background: #fff; border-radius: 36px; padding: clamp(28px, 3vw, 44px); box-shadow: 0 30px 80px rgba(20, 58, 33, 0.12);
    display: flex; flex-direction: column; gap: 14px;
}
.fpl2-calc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 17px; }
.fpl2-calc-amt { font-family: var(--f2-display); font-weight: 800; font-size: 28px; }
.fpl2-range {
    -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; outline: none; cursor: pointer;
    background: linear-gradient(90deg, var(--f2-mint) 0 var(--fill), #edf2ef var(--fill) 100%);
}
.fpl2-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border-radius: 50%;
    background: var(--f2-forest); border: 5px solid #fff; box-shadow: 0 4px 14px rgba(20, 58, 33, 0.3);
    transition: transform 0.2s var(--f2-spring);
}
.fpl2-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--f2-forest); border: 5px solid #fff; box-shadow: 0 4px 14px rgba(20, 58, 33, 0.3); }
.fpl2-range:active::-webkit-slider-thumb { transform: scale(1.2); }
.fpl2-range:focus-visible { box-shadow: 0 0 0 4px rgba(131, 255, 192, 0.45); }
.fpl2-calc-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--f2-muted); margin-top: -6px; }
.fpl2-calc-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #f4f8f6; border-radius: 999px; padding: 5px; }
.fpl2-calc-tiers button {
    border: 0; background: transparent; border-radius: 999px; padding: 10px 8px; font: inherit; font-size: 15px; color: var(--f2-ink); cursor: pointer;
    transition: background 0.25s var(--f2-ease), box-shadow 0.25s, transform 0.15s;
}
.fpl2-calc-tiers button b { color: #1a7a4a; }
.fpl2-calc-tiers button.on { background: #fff; box-shadow: 0 4px 14px rgba(20, 58, 33, 0.1); font-weight: 700; }
.fpl2-calc-tiers button:active { transform: scale(0.95); }
.fpl2-calc-bonus { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; user-select: none; }
.fpl2-calc-bonus input { position: absolute; opacity: 0; pointer-events: none; }
.fpl2-switch { width: 46px; height: 26px; border-radius: 999px; background: #dfe7e2; position: relative; flex-shrink: 0; transition: background 0.25s; }
.fpl2-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); transition: transform 0.35s var(--f2-spring); }
.fpl2-calc-bonus input:checked + .fpl2-switch { background: var(--f2-forest); }
.fpl2-calc-bonus input:checked + .fpl2-switch::after { transform: translateX(20px); }
.fpl2-calc-bonus input:focus-visible + .fpl2-switch { box-shadow: 0 0 0 4px rgba(131, 255, 192, 0.45); }
.fpl2-calc-result {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
    background: linear-gradient(140deg, var(--f2-forest), #1f5232); color: #fff; border-radius: 28px; padding: 24px; margin-top: 6px;
}
.fpl2-calc-result-label { font-size: 15px; color: #b9f7d6; font-weight: 600; }
.fpl2-calc-result-value { font-family: var(--f2-display); font-weight: 800; font-size: clamp(44px, 4vw, 60px); line-height: 1.1; color: var(--f2-mint); animation: f2-bump 0.45s var(--f2-spring); }
.fpl2-calc-result-sub { font-size: 14px; color: #d6f5e4; }

/* ---------------- Portal bento ---------------- */
.fpl2-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.fpl2-tile {
    position: relative; overflow: hidden; background: #fff; border-radius: 32px; padding: clamp(24px, 2.4vw, 36px);
    display: flex; flex-direction: column; gap: 8px; box-shadow: var(--f2-shadow);
    transition: transform 0.35s var(--f2-ease), box-shadow 0.35s var(--f2-ease);
}
.fpl2-tile:hover { transform: translateY(-5px); box-shadow: 0 22px 54px rgba(20, 58, 33, 0.11); }
.fpl2-tile.wide { grid-column: span 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; }
.fpl2-tile.mint { background: linear-gradient(150deg, #ffffff 30%, #e6fff1 100%); }
.fpl2-tile.gold { background: linear-gradient(160deg, #ffffff 30%, #fff4d6 100%); }
.fpl2-tile.lilac { background: linear-gradient(160deg, #ffffff 30%, #efecff 100%); }
.fpl2-tile.peach { background: linear-gradient(150deg, #ffffff 30%, #ffefe3 100%); }
.fpl2-tile h3 { font-size: clamp(21px, 1.7vw, 26px); font-weight: 800; letter-spacing: -0.03em; }
.fpl2-tile p { color: #555; font-size: 16px; }
.fpl2-tile-copy { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.fpl2-tag { font-size: 13px; font-weight: 700; background: #fff; color: #a04310; border-radius: 999px; padding: 4px 12px; }
.fpl2-tile-icon { width: 54px; height: 54px; border-radius: 18px; background: var(--f2-mint-soft); display: grid; place-items: center; font-size: 24px; color: var(--f2-forest); margin-bottom: 8px; transition: transform 0.45s var(--f2-spring); }
.fpl2-tile:hover .fpl2-tile-icon { transform: rotate(-8deg) scale(1.1); }

/* deal tracker: stops tick on one by one, the line fills behind them */
.fpl2-track { flex: 1.3 1 360px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 4px; }
.fpl2-track-line { position: absolute; left: 12.5%; right: 12.5%; top: 22px; height: 4px; background: #e3efe8; border-radius: 4px; z-index: 0; }
.fpl2-track-line span { display: block; height: 100%; width: 100%; background: #1a9960; border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform 1.6s 0.3s var(--f2-ease); }
.fpl2-tile.in .fpl2-track-line span { transform: scaleX(1); }
.fpl2-track-stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.fpl2-track-stop i {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: transparent;
    box-shadow: inset 0 0 0 2px #cfe6d9; font-size: 18px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.4s var(--f2-spring);
    transition-delay: calc(var(--d) * 0.4s + 0.4s);
}
.fpl2-tile.in .fpl2-track-stop i { background: var(--f2-mint); color: var(--f2-forest); box-shadow: none; transform: scale(1.08); }

.fpl2-tile-figure { margin-top: auto; display: flex; flex-direction: column; }
.fpl2-tile-figure span { font-family: var(--f2-display); font-size: clamp(34px, 3vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.fpl2-tile-figure small { font-size: 14px; color: var(--f2-muted); }
.fpl2-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; margin-top: 12px; }
.fpl2-bars span {
    flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: #ffd97a;
    transform-origin: bottom; transform: scaleY(0); transition: transform 0.7s var(--f2-spring); transition-delay: calc(var(--d) * 70ms + 0.3s);
}
.fpl2-bars span:last-child { background: #f5b400; }
.fpl2-tile.in .fpl2-bars span { transform: scaleY(1); }

.fpl2-chat { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.fpl2-bubble { max-width: 85%; font-size: 14.5px; padding: 10px 14px; border-radius: 18px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--f2-spring); }
.fpl2-bubble.them { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 2px 8px rgba(79, 60, 201, 0.08); }
.fpl2-bubble.me { align-self: flex-end; background: #4f3cc9; color: #fff; border-bottom-right-radius: 6px; }
.fpl2-tile.in .fpl2-bubble { opacity: 1; transform: none; }
.fpl2-tile.in .fpl2-bubble:nth-child(1) { transition-delay: 0.4s; }
.fpl2-tile.in .fpl2-bubble:nth-child(2) { transition-delay: 1.1s; }
.fpl2-tile.in .fpl2-bubble:nth-child(3) { transition-delay: 1.8s; }
.fpl2-bubble.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.fpl2-bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: #b4abe8; animation: f2-typing 1.2s infinite; }
.fpl2-bubble.typing i:nth-child(2) { animation-delay: 0.15s; }
.fpl2-bubble.typing i:nth-child(3) { animation-delay: 0.3s; }

.fpl2-mini-browser { flex: 1.2 1 340px; background: #fff; border-radius: 20px; box-shadow: 0 14px 40px rgba(160, 67, 16, 0.12); overflow: hidden; }
.fpl2-mini-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f6f6f6; font-size: 12px; color: var(--f2-muted); }
.fpl2-mini-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ddd; }
.fpl2-mini-bar span { margin-left: 8px; background: #fff; border-radius: 999px; padding: 2px 12px; }
.fpl2-mini-page { display: flex; gap: 16px; padding: 18px; align-items: center; }
.fpl2-mini-img { width: 110px; height: 90px; border-radius: 14px; background: #f3f3f0; display: grid; place-items: center; font-size: 40px; color: #b0b8b3; flex-shrink: 0; }
.fpl2-mini-info { display: flex; flex-direction: column; gap: 4px; font-size: 14px; min-width: 0; }
.fpl2-mini-info b { font-size: 15px; }
.fpl2-mini-embed {
    margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
    background: var(--f2-mint-pale); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; box-shadow: inset 0 0 0 1.5px var(--f2-mint);
    animation: f2-glow 2.6s ease-in-out infinite;
}
.fpl2-mini-embed em { font-style: normal; font-weight: 800; font-size: 11px; background: var(--f2-forest); color: var(--f2-mint); border-radius: 6px; padding: 1px 6px; }

/* ---------------- FAQ ----------------
   Topics on the left (portal-style tabs) with a help card under them; the
   chosen topic's questions on the right. */
.fpl2-faq { display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.6fr); gap: clamp(24px, 3.5vw, 72px); align-items: start; }
.fpl2-faq-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.fpl2-faq-topics { display: flex; flex-direction: column; gap: 6px; background: #f4f8f6; border-radius: 28px; padding: 8px; }
.fpl2-faq-topic {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    border: 0; background: transparent; border-radius: 22px; padding: 10px 14px 10px 10px;
    font: inherit; font-size: 16px; font-weight: 600; color: var(--f2-ink); cursor: pointer;
    transition: background 0.25s var(--f2-ease), box-shadow 0.25s, transform 0.15s;
}
.fpl2-faq-topic:hover { background: rgba(255, 255, 255, 0.7); }
.fpl2-faq-topic:active { transform: scale(0.98); }
.fpl2-faq-topic.on { background: #fff; box-shadow: 0 6px 18px rgba(20, 58, 33, 0.08); }
.fpl2-faq-topic:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(131, 255, 192, 0.45); }
.fpl2-faq-topic-icon {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
    background: #fff; color: var(--f2-forest); font-size: 17px; transition: background 0.25s, transform 0.45s var(--f2-spring);
}
.fpl2-faq-topic.on .fpl2-faq-topic-icon { background: var(--f2-mint); transform: rotate(-8deg); }
.fpl2-faq-topic:nth-child(3).on .fpl2-faq-topic-icon { background: #fff1c7; color: #8a5a00; }
.fpl2-faq-topic:nth-child(4).on .fpl2-faq-topic-icon { background: #ece9fe; color: #4f3cc9; }
.fpl2-faq-count { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--f2-muted); background: #fff; border-radius: 999px; padding: 2px 10px; }
.fpl2-faq-topic.on .fpl2-faq-count { background: var(--f2-mint-pale); color: #1a7a4a; }

.fpl2-faq-help {
    position: relative; overflow: hidden; border-radius: 28px; padding: 26px;
    background: linear-gradient(150deg, #ffffff 20%, #efecff 100%); box-shadow: var(--f2-shadow);
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.fpl2-faq-help-icon { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; background: #ddd6ff; color: #4f3cc9; animation: f2-wiggle 4s 2s ease-in-out infinite; }
.fpl2-faq-help h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.fpl2-faq-help p { font-size: 15.5px; color: #555; }
.fpl2-faq-help .fpl2-btn { margin-top: 6px; }
.fpl2-faq-help .fpl2-link { font-size: 14.5px; color: #434343 !important; }

.fpl2-faq-list { display: flex; flex-direction: column; gap: 10px; }
.fpl2-qa {
    background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px #e9f1ec;
    transition: box-shadow 0.3s, background 0.3s;
    animation: f2-rise 0.5s var(--f2-ease) both; animation-delay: calc(var(--d) * 60ms);
}
.fpl2-qa:hover { box-shadow: 0 0 0 1px #c6f5dc, 0 10px 28px rgba(20, 58, 33, 0.06); }
.fpl2-qa.open { background: linear-gradient(160deg, #ffffff 30%, #effff6 100%); box-shadow: 0 0 0 1.5px #8fe3b7, 0 14px 34px rgba(20, 58, 33, 0.07); }
.fpl2-qa-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
    border: 0; background: none; padding: 22px 24px; font: inherit; font-size: 18px; font-weight: 700; color: var(--f2-ink); cursor: pointer;
    border-radius: 24px;
}
.fpl2-qa-q:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(131, 255, 192, 0.45); }
/* plus that turns into a minus */
.fpl2-qa-icon { position: relative; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--f2-mint-pale); transition: background 0.25s, transform 0.4s var(--f2-spring); }
.fpl2-qa-icon::before, .fpl2-qa-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--f2-forest); transition: transform 0.35s var(--f2-ease); }
.fpl2-qa-icon::after { transform: rotate(90deg); }
.fpl2-qa.open .fpl2-qa-icon { background: var(--f2-mint); transform: rotate(180deg); }
.fpl2-qa.open .fpl2-qa-icon::after { transform: rotate(0deg); }
/* smooth open: grid rows from 0fr to 1fr */
.fpl2-qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--f2-ease); }
.fpl2-qa.open .fpl2-qa-a { grid-template-rows: 1fr; }
.fpl2-qa-a > div { overflow: hidden; }
.fpl2-qa-a-inner { padding: 0 24px 24px; font-size: 16.5px; line-height: 1.65; color: #555; max-width: 70ch; opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.4s var(--f2-ease); }
.fpl2-qa.open .fpl2-qa-a-inner { opacity: 1; transform: none; transition-delay: 0.1s; }
.fpl2-qa-a-inner a { color: var(--f2-ink) !important; text-decoration: underline !important; text-underline-offset: 2px; }

/* ---------------- Final CTA ---------------- */
.fpl2-final-wrap { padding: 0 0 clamp(64px, 8vw, 110px); }
.fpl2-final {
    position: relative; overflow: hidden; border-radius: 44px; padding: clamp(36px, 5vw, 72px);
    background:
        radial-gradient(600px 400px at 100% 0%, rgba(131, 255, 192, 0.28), transparent 70%),
        linear-gradient(135deg, #143a21 0%, #1d4d2d 100%);
    color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.fpl2-final h2 { color: #fff; font-size: clamp(30px, 3.2vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; max-width: 720px; }
.fpl2-final p { color: #c8f0da; font-size: 18px; margin-top: 10px; }
.fpl2-final-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Scroll reveal (LandingMotion adds .fpl2-js) ---------------- */
.fpl2-js [data-r] { opacity: 0; transform: translateY(28px); }
.fpl2-js [data-r].in {
    opacity: 1; transform: none;
    transition: opacity 0.75s var(--f2-ease), transform 0.75s var(--f2-ease), box-shadow 0.35s var(--f2-ease);
    transition-delay: calc(var(--d, 0) * 110ms);
}
/* once arrived, hover lifts answer straight away */
.fpl2-js .fpl2-way.in:hover, .fpl2-js .fpl2-tile.in:hover { transform: translateY(-6px); transition-delay: 0s; }
.fpl2-js .fpl2-tier.in:hover { transform: translateX(6px); transition-delay: 0s; }
/* the three steps rise one after another inside their list */
.fpl2-js .fpl2-steps .fpl2-step { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--f2-ease), transform 0.7s var(--f2-ease); transition-delay: calc(var(--d) * 180ms + 0.15s); }
.fpl2-js .fpl2-steps.in .fpl2-step { opacity: 1; transform: none; }
.fpl2-steps.in .fpl2-step-icon { animation: f2-pop 0.6s var(--f2-spring) both; animation-delay: calc(var(--d) * 180ms + 0.3s); }

/* ---------------- More scroll reveals ----------------
   After the inspiration site: two-column sections slide in from either side,
   big visuals scale up into place, small icons pop in once their card has
   arrived, and section headings rise out of a mask. */
.fpl2-js [data-r="left"] { transform: translateX(-64px); }
.fpl2-js [data-r="right"] { transform: translateX(64px); }
.fpl2-js [data-r="zoom"] { transform: translateY(24px) scale(0.94); }
.fpl2-js [data-r="left"].in, .fpl2-js [data-r="right"].in, .fpl2-js [data-r="zoom"].in {
    transition-duration: 0.9s, 0.9s, 0.35s;
}

/* Headings rise up from behind an invisible line, a beat after their label. */
.fpl2-js [data-r] .fpl2-h2 {
    clip-path: inset(0 0 100% 0);
    transform: translateY(40%);
}
.fpl2-js [data-r].in .fpl2-h2 {
    clip-path: inset(-10% -5% -20% -5%);
    transform: none;
    transition: clip-path 0.9s 0.12s var(--f2-ease), transform 0.9s 0.12s var(--f2-ease);
}
.fpl2-js [data-r] .fpl2-kicker { opacity: 0; transform: scale(0.8); }
.fpl2-js [data-r].in .fpl2-kicker { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.5s var(--f2-spring); }

/* Icons pop in just after their card lands. */
.fpl2-js [data-r] :is(.fpl2-way-icon, .fpl2-tile-icon, .fpl2-tier-icon) { transform: scale(0); }
.fpl2-js [data-r].in :is(.fpl2-way-icon, .fpl2-tile-icon, .fpl2-tier-icon) {
    transform: none;
    /* backwards, not both: once popped in, hover is free to tilt it */
    animation: f2-pop-in 0.6s var(--f2-spring) backwards;
    animation-delay: calc(var(--d, 0) * 110ms + 0.45s);
}
.fpl2-js .fpl2-way.in:hover .fpl2-way-icon,
.fpl2-js .fpl2-tile.in:hover .fpl2-tile-icon { transform: rotate(-8deg) scale(1.08); }
@keyframes f2-pop-in { from { transform: scale(0) rotate(-20deg); } to { transform: none; } }

/* The calculator's result pops once the card has slid in. */
.fpl2-js [data-r].in .fpl2-calc-result { animation: f2-pop-soft 0.7s 0.6s var(--f2-spring) both; }
@keyframes f2-pop-soft { from { transform: scale(0.9); opacity: 0; } }

/* The closing banner's buttons follow it in. */
.fpl2-js .fpl2-final .fpl2-btn { opacity: 0; transform: translateY(16px); }
.fpl2-js .fpl2-final.in .fpl2-btn { opacity: 1; transform: none; transition: opacity 0.6s, transform 0.6s var(--f2-ease), box-shadow 0.35s, background 0.2s, border-color 0.2s; }
.fpl2-js .fpl2-final.in .fpl2-btn:hover { transform: translateY(-2px); transition-delay: 0s; }
.fpl2-js .fpl2-final.in .fpl2-btn:active { transform: scale(0.96); transition-delay: 0s; }
.fpl2-js .fpl2-final.in .fpl2-btn:nth-child(1) { transition-delay: 0.45s; }
.fpl2-js .fpl2-final.in .fpl2-btn:nth-child(2) { transition-delay: 0.58s; }

/* On a phone, sideways slides become plain fade-ups. */
@media (max-width: 760px) {
    .fpl2-js [data-r="left"], .fpl2-js [data-r="right"] { transform: translateY(28px); }
}

/* ---------------- Keyframes ---------------- */
@keyframes f2-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes f2-rise-big { from { opacity: 0; transform: translateY(40px) scale(0.96); } }
@keyframes f2-swap { from { opacity: 0; transform: translateY(0.3em) scale(0.92); } }
@keyframes f2-bob { 0%, 100% { transform: rotate(-0.75deg) translateY(0); } 50% { transform: rotate(-0.75deg) translateY(-10px); } }
@keyframes f2-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes f2-wave { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-10deg); } }
@keyframes f2-pop { 0% { transform: scale(0.5); } 100% { transform: scale(1); } }
@keyframes f2-bump { 0% { transform: scale(0.92); } 45% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes f2-wiggle { 0%, 70%, 100% { transform: rotate(0); } 75%, 85% { transform: rotate(-12deg); } 80%, 90% { transform: rotate(12deg); } }
@keyframes f2-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes f2-glow { 0%, 100% { box-shadow: inset 0 0 0 1.5px var(--f2-mint), 0 0 0 0 rgba(131, 255, 192, 0.6); } 50% { box-shadow: inset 0 0 0 1.5px var(--f2-mint), 0 0 0 8px rgba(131, 255, 192, 0); } }

/* ---------------- Smaller screens ---------------- */
@media (max-width: 1100px) {
    .fpl2-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fpl2-pv { padding: 20px; }
    .fpl2-pv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fpl2-pv-stats > div:last-child { display: none; }
}
@media (max-width: 980px) {
    .fpl2-hero-grid, .fpl2-earn, .fpl2-faq { grid-template-columns: minmax(0, 1fr); }
    .fpl2-hero-panel { min-height: 0; }
    .fpl2-hero-art { max-width: 640px; justify-self: center; }
    .fpl2-pv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fpl2-pv-stats > div:last-child { display: grid; }
    .fpl2-faq-side { position: static; }
    .fpl2-faq-topics { flex-direction: row; overflow-x: auto; border-radius: 999px; }
    .fpl2-faq-topic { width: auto; flex-shrink: 0; }
}
@media (max-width: 760px) {
    .fpl2-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fpl2-ways, .fpl2-steps, .fpl2-bento { grid-template-columns: minmax(0, 1fr); }
    .fpl2-tile.wide { grid-column: auto; }
    .fpl2-steps::before { display: none; }
    .fpl2-pv-stats { grid-template-columns: minmax(0, 1fr); }
    .fpl2-pv-toast { right: 4px; }
    .fpl2-hero-art { padding: 50px 0 60px; }
    .fpl2-track-stop { font-size: 12px; }
    .fpl2-final { border-radius: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .fpl2 *, .fpl2 *::before, .fpl2 *::after { animation: none !important; transition: none !important; }
    .fpl2-pv-tilt { transform: none; }
    .fpl2-steps::before, .fpl2-track-line span, .fpl2-bars span { transform: none; }
    .fpl2-track-stop i { background: var(--f2-mint); color: var(--f2-forest); }
    .fpl2-bubble { opacity: 1; transform: none; }
}

/* The marketing nav above this page sits in a fixed 1240px column. On this
   page only (this sheet loads nowhere else) it spans the same gutter as the
   page, so the logo and buttons line up with the hero instead of floating
   in the middle of a wide screen. Wide monitors only: on a laptop the page uses
   the site's own 1240px column, so the nav is left as it is everywhere else. */
@media (min-width: 1600px) {
    nav.menu_wrap > .wrap { width: 100%; max-width: calc(1760px + 2 * clamp(20px, 4.5vw, 110px)); margin: 0 auto; padding-left: clamp(20px, 4.5vw, 110px); padding-right: clamp(20px, 4.5vw, 110px); box-sizing: border-box; }
}

/* Solid colours in place of the gradients above, dark green headings, and the
   colour kept for small splashes. Shapes and animations are as above. */
:root .fpl2-hero-panel { background: #ffffff; box-shadow: none; }
:root .fpl2-tint { background: #f7faf8; }
:root :is(.fpl2-pv-stats > div, .fpl2-pv-stats > div.gold, .fpl2-pv-stats > div:first-child) { background: #ffffff; }
:root .fpl2-way.mint { background: #edfff5; }
:root .fpl2-way.lilac { background: #f5f3ff; }
:root .fpl2-tile.mint { background: #edfff5; }
:root .fpl2-tile.gold { background: #fff8e6; }
:root .fpl2-tile.lilac { background: #f5f3ff; }
:root .fpl2-tile.peach { background: #fff4ec; }
:root .fpl2-faq-help { background: #f5f3ff; }
:root .fpl2-qa.open { background: #ffffff; }
:root :is(.fpl2-calc-result, .fpl2-final) { background: #143a21; }
:root .fpl2 :is(h1, h2) { color: #143a21; }
:root .fpl2-final h2 { color: #ffffff; }

/* Phone (Task-2387 mobile pass): the hero preview's two floating notes stay
   inside the screen and off the card's heading. "Deal settled!" sits centred
   above the card instead of over "Welcome back"; "New referral sent" no longer
   hangs past the left edge. */
@media (max-width: 575px) {
    .fpl2-hero-art { padding: 76px 0 64px; }
    .fpl2-pv-toast { top: -66px; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 16px); }
    .fpl2-pv-chip { left: 12px; bottom: -46px; }

    /* Hero: two full-width buttons, then the rating centred under them. The
       "Already a partner? Sign in" line moves out: the header's Log in covers it. */
    .fpl2-hero-cta { flex-direction: column; align-self: stretch; gap: 10px; }
    .fpl2-hero-cta .fpl2-btn { width: 100%; justify-content: center; }
    .fpl2-hero-meta { align-self: stretch; justify-content: center; font-size: 14px; }
    .fpl2-hero-meta .fpl2-dot, .fpl2-hero-meta > span:last-child { display: none; }
    .fpl2-rating { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 7px 14px; box-shadow: var(--f2-shadow); }

    /* Quick facts: four small cards, icon above the number, with room to breathe. */
    .fpl2-facts { gap: 10px; border-top: 0; padding-top: 4px; }
    .fpl2-fact {
        flex-direction: column; align-items: flex-start; gap: 8px;
        background: #fff; border-radius: 18px; padding: 14px; box-shadow: var(--f2-shadow);
        font-size: 13px;
    }
    .fpl2-fact-icon { width: 34px; height: 34px; font-size: 15px; box-shadow: none; background: #f1fcf6; }
    .fpl2-fact b { font-size: 22px; }
}

/* FAQ topic dropdown: phones only; wider screens keep the topic tabs. */
.fpl2-faq-pick { display: none; }
@media (max-width: 575px) {
    .fpl2-faq-topics { display: none; }
    .fpl2-faq-pick { display: block; position: relative; align-self: stretch; width: 100%; }
    .fpl2-faq-pick-label { display: block; font-size: 13px; font-weight: 700; color: var(--f2-muted); margin-bottom: 6px; }
    .fpl2-faq-pick select {
        width: 100%; appearance: none; -webkit-appearance: none;
        font: inherit; font-size: 16px; font-weight: 700; color: var(--f2-ink);
        background: #fff; border: 1.5px solid #dfe9e3; border-radius: 14px;
        padding: 13px 44px 13px 16px; box-shadow: var(--f2-shadow);
    }
    .fpl2-faq-pick select:focus-visible { outline: none; border-color: var(--f2-mint); box-shadow: 0 0 0 4px rgba(131, 255, 192, 0.38); }
    .fpl2-faq-pick .bi { position: absolute; right: 16px; bottom: 16px; pointer-events: none; color: var(--f2-ink); }
    /* Questions straight after the dropdown; "Still have questions?" after them. */
    .fpl2-faq { display: flex; flex-direction: column; }
    .fpl2-faq-side { display: contents; }
    .fpl2-faq-pick { order: 1; }
    .fpl2-faq-list { order: 2; }
    .fpl2-faq-help { order: 3; }
}

/* Phone: Spot. Refer. Earn. as a compact list, icon beside its words, rather
   than three tall centred stacks. */
@media (max-width: 575px) {
    .fpl2-steps { gap: 18px; }
    .fpl2-step {
        display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; row-gap: 2px;
        align-items: start; text-align: left; padding: 0;
    }
    .fpl2-step-icon { grid-row: 1 / span 3; width: 56px; height: 56px; font-size: 22px; box-shadow: var(--f2-shadow), 0 0 0 5px #f3fbf7; }
    .fpl2-step:nth-child(2) .fpl2-step-icon { box-shadow: var(--f2-shadow), 0 0 0 5px #f1eeff; }
    .fpl2-step-no { margin-top: 2px; }
    .fpl2-step h3 { font-size: 20px; }
    .fpl2-step p { font-size: 15px; max-width: none; margin: 0; }
}
