/*
 * Affiliate landing page styles.
 *
 * From the supplied design (trader2b-affiliates.html). Every selector is scoped
 * under .aff-lp, the class on the template part's <main>, because this page now
 * uses the site header and footer: unscoped rules here for header, .nav, .logo,
 * .container, .btn and .footer-* would otherwise restyle the shared site chrome.
 */

.aff-lp{--bg:#060d0b;--panel:#0d1a16;--panel2:#10251b;--line:#284235;--green:#3de86e;--lime:#a2ff58;--text:#f4faf5;--muted:#a7b9ae;--radius:17px;--max:1200px}
.aff-lp,.aff-lp *{box-sizing:border-box}html{scroll-behavior:smooth}.aff-lp{margin:0;color:var(--text);background:var(--bg);font:16px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.aff-lp a{color:inherit;text-decoration:none}.aff-lp button{font:inherit;cursor:pointer}.aff-lp img{max-width:100%}.aff-lp .container{width:min(var(--max),calc(100% - 40px));margin-inline:auto}.aff-lp .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.aff-lp header{position:sticky;top:0;z-index:20;background:rgba(4,12,9,.92);backdrop-filter:blur(14px);border-bottom:1px solid #1b3426}.aff-lp .nav{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:22px}.aff-lp .logo{font-size:27px;font-weight:750;letter-spacing:-1.4px;white-space:nowrap;line-height:1}.aff-lp .logo b{color:var(--green)}.aff-lp .logo small{display:block;font-size:9px;letter-spacing:1px;text-align:right;color:var(--muted)}.aff-lp .nav-links{display:flex;align-items:center;gap:28px;font-size:13px;color:#c5d3cb}.aff-lp .nav-links a:hover,.aff-lp .footer-links a:hover{color:var(--green)}.aff-lp .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:47px;padding:12px 20px;border-radius:9px;border:1px solid transparent;font-weight:750;font-size:14px;text-align:center;transition:transform .15s,background .15s}.aff-lp .btn:hover{transform:translateY(-2px)}.aff-lp .btn-primary{color:#05220d;background:linear-gradient(125deg,#b7ff59,#27e75d);box-shadow:0 0 25px #28e75623}.aff-lp .btn-outline{border-color:#668476;background:#0c1713;color:white}.aff-lp .btn-outline:hover{background:#16261e}.aff-lp .menu-button{display:none;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:white;padding:8px 12px}
.aff-lp .hero{position:relative;overflow:hidden;padding:72px 0 32px;background:radial-gradient(ellipse at 74% 32%,#0f4f2a 0%,transparent 44%),radial-gradient(ellipse at 5% 0%,#0a3821 0%,transparent 35%),#060e0b}.aff-lp .hero:before,.aff-lp .cta-banner:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;background:repeating-linear-gradient(90deg,transparent 0 57px,#1b6b3b 58px,#1b6b3b 59px,transparent 60px 100px)}.aff-lp .hero-grid{position:relative;display:grid;grid-template-columns:1fr 1.02fr;align-items:center;gap:50px}.aff-lp .eyebrow{display:inline-block;border:1px solid #389957;color:#dcffe0;border-radius:999px;padding:5px 14px;background:#143a20;font-size:12px;font-weight:700}.aff-lp .hero h1{font-size:clamp(38px,4.7vw,66px);line-height:1.08;letter-spacing:-2px;margin:20px 0 20px;font-weight:820}.aff-lp .accent{color:var(--lime)}.aff-lp .hero p{color:#d1ddd4;font-size:17px;max-width:570px;margin:0 0 27px}.aff-lp .actions{display:flex;flex-wrap:wrap;gap:12px}.aff-lp .hero-note{font-size:12px;color:#9bb5a3;margin-top:13px}
.aff-lp .dashboard-shell{position:relative;border:1px solid #3c7153;border-radius:20px;padding:15px;background:linear-gradient(145deg,#15291d,#08120f);box-shadow:0 28px 65px #0009,0 0 48px #2eee6a1c;transform:perspective(1300px) rotateY(-5deg) rotateX(3deg)}.aff-lp .dashboard-top{display:flex;justify-content:space-between;align-items:center;padding:0 4px 12px;border-bottom:1px solid var(--line);font-weight:750;font-size:14px}.aff-lp .dot-group{display:flex;gap:5px}.aff-lp .dot-group i{width:7px;height:7px;border-radius:50%;background:#55866a}.aff-lp .dashboard-body{padding-top:15px}.aff-lp .dash-title{font-size:19px;font-weight:750;margin-bottom:15px}.aff-lp .metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.aff-lp .metric{border:1px solid #2e5138;background:#10251b;border-radius:11px;padding:13px 10px}.aff-lp .metric span{display:block;color:#b3cdbb;font-size:11px}.aff-lp .metric strong{font-size:clamp(17px,2vw,26px)}.aff-lp .metric em{display:block;color:#5cf77e;font-size:11px;font-style:normal}.aff-lp .dash-fields{display:grid;grid-template-columns:1.5fr 1fr;gap:9px;margin-top:10px}.aff-lp .dash-field{border:1px solid #284c34;border-radius:11px;background:#0b1d14;padding:12px;min-width:0}.aff-lp .dash-field label{display:block;color:#aac7b0;font-size:11px;margin-bottom:8px}.aff-lp .field-copy{display:flex;align-items:center;gap:6px;justify-content:space-between}.aff-lp .field-copy code{font:12px ui-monospace,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#e0f8e5}.aff-lp .copy-btn{border:1px solid #315a3e;border-radius:5px;color:#bcfbd1;background:#1a3b28;padding:3px 7px;font-size:11px}.aff-lp .demo-mark{font-size:10px;color:#91ab96;text-align:right;margin-top:10px}
.aff-lp .benefits{position:relative;display:grid;grid-template-columns:repeat(4,1fr);margin-top:47px;background:rgba(12,28,19,.92);border:1px solid #375840;border-radius:14px;overflow:hidden}.aff-lp .benefit{padding:19px 21px;display:flex;align-items:center;gap:12px}.aff-lp .benefit+.benefit{border-left:1px solid #34523d}.aff-lp .benefit-icon{color:var(--green);font-size:27px;line-height:1}.aff-lp .benefit strong,.aff-lp .benefit small{display:block}.aff-lp .benefit strong{font-size:13px}.aff-lp .benefit small{font-size:11px;color:var(--muted)}
.aff-lp section.standard{padding:67px 0}.aff-lp .section-heading{text-align:center;margin-bottom:29px}.aff-lp .section-heading h2{font-size:clamp(27px,3vw,40px);line-height:1.2;margin:0 0 9px;letter-spacing:-.8px}.aff-lp .section-heading p{margin:0;color:var(--muted);font-size:14px}.aff-lp .steps,.aff-lp .tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.aff-lp .tile{border:1px solid #375646;border-radius:16px;background:linear-gradient(155deg,#13221c,#0b1411);padding:23px}.aff-lp .step-head{display:flex;align-items:center;gap:15px;margin-bottom:14px}.aff-lp .number{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--green);color:#05230d;font-weight:850}.aff-lp .bigicon{font-size:30px;color:var(--green)}.aff-lp .tile h3{margin:0;font-size:19px}.aff-lp .tile p{margin:0;color:var(--muted);font-size:13px}.aff-lp .section-tinted{background:radial-gradient(ellipse at 50% 80%,#0b2c1a 0%,transparent 60%),#07100d}.aff-lp .tier{text-align:center;padding:29px 16px}.aff-lp .tier .tier-icon{font-size:22px;color:var(--green)}.aff-lp .tier h3{font-size:18px;margin:4px 0}.aff-lp .tier strong{display:block;color:var(--lime);font-size:62px;letter-spacing:-2px;line-height:1.3}.aff-lp .tier p{font-size:12px}.aff-lp .tier.featured{border-color:#72e861;box-shadow:0 0 30px #48f54a22;position:relative}.aff-lp .ribbon{position:absolute;top:-13px;left:50%;transform:translateX(-50%);white-space:nowrap;border-radius:50px;color:#13300d;background:var(--lime);font-size:10px;font-weight:800;padding:5px 14px}.aff-lp .caveat{text-align:center;color:#849f8a;font-size:11px;margin:19px 0 0}
.aff-lp .audiences{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.aff-lp .audiences .tile{padding:23px 19px}.aff-lp .audiences h3{margin:12px 0 8px;font-size:16px}.aff-lp .faq{max-width:900px;margin:auto;border:1px solid #314b3b;border-radius:13px;overflow:hidden;background:#0b1611}.aff-lp .faq details+details{border-top:1px solid #314b3b}.aff-lp .faq summary{list-style:none;cursor:pointer;position:relative;font-weight:650;padding:16px 45px 16px 21px;font-size:14px}.aff-lp .faq summary::-webkit-details-marker{display:none}.aff-lp .faq summary:after{content:"+";font-size:20px;position:absolute;right:20px;top:9px;color:var(--green)}.aff-lp .faq details[open] summary:after{content:"−"}.aff-lp .faq details p{color:var(--muted);margin:0;padding:0 21px 17px;font-size:13px}
.aff-lp .cta-banner{position:relative;overflow:hidden;text-align:center;background:linear-gradient(115deg,#08391b,#06160f 50%,#083d22);border-top:1px solid #28683d;border-bottom:1px solid #28683d;padding:63px 20px}.aff-lp .cta-banner>*{position:relative}.aff-lp .cta-banner h2{font-size:clamp(27px,3vw,40px);margin:0 0 7px}.aff-lp .cta-banner p{margin:0 0 23px;color:#cfdfd0;font-size:14px}.aff-lp .footer{padding:43px 0 24px}.aff-lp .footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:30px}.aff-lp .footer-brand p{color:var(--muted);font-size:12px}.aff-lp .footer-links h4{font-size:13px;color:var(--green);margin:0 0 14px}.aff-lp .footer-links a{display:block;color:#c3d1c5;font-size:12px;margin:7px 0}.aff-lp .fineprint{margin-top:34px;padding-top:18px;border-top:1px solid #23392d;font-size:11px;color:#819887}
@media(max-width:900px){.aff-lp .nav-links{gap:15px}.aff-lp .hero-grid{grid-template-columns:1fr;gap:32px}.aff-lp .hero h1{max-width:730px}.aff-lp .dashboard-shell{max-width:650px;margin:auto;transform:none}.aff-lp .benefits{grid-template-columns:repeat(2,1fr)}.aff-lp .benefit:nth-child(3){border-left:0;border-top:1px solid #34523d}.aff-lp .benefit:nth-child(4){border-top:1px solid #34523d}.aff-lp .audiences{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.aff-lp .container{width:min(var(--max),calc(100% - 28px))}.aff-lp .nav{min-height:64px}.aff-lp .menu-button{display:block}.aff-lp .nav-links{display:none;position:absolute;top:64px;left:0;right:0;background:#06100b;border-bottom:1px solid var(--line);padding:17px;flex-direction:column;align-items:stretch;gap:17px}.aff-lp .nav-links.open{display:flex}.aff-lp .nav>.btn{display:none}.aff-lp .hero{padding-top:49px}.aff-lp .hero h1{letter-spacing:-1.3px;font-size:clamp(35px,10vw,49px)}.aff-lp .hero p{font-size:15px}.aff-lp .actions .btn{width:100%}.aff-lp .dashboard-shell{padding:11px}.aff-lp .dash-fields{grid-template-columns:1fr}.aff-lp .benefits{grid-template-columns:1fr;margin-top:26px}.aff-lp .benefit+.benefit,.aff-lp .benefit:nth-child(3),.aff-lp .benefit:nth-child(4){border-top:1px solid #34523d;border-left:0}.aff-lp .steps,.aff-lp .tiers,.aff-lp .audiences{grid-template-columns:1fr}.aff-lp .footer-grid{grid-template-columns:repeat(2,1fr);gap:30px 14px}.aff-lp .footer-brand{grid-column:1/-1}.aff-lp section.standard{padding:52px 0}.aff-lp .tier strong{font-size:52px}.aff-lp .metric{padding:10px 7px}.aff-lp .metric strong{font-size:17px}}
@media(prefers-reduced-motion:reduce){.aff-lp{scroll-behavior:auto}.aff-lp .btn{transition:none}.aff-lp .btn:hover{transform:none}}
  

/* Brand logo. The design used a text logo; the real trader2B mark is used
   instead, so .logo only needs to size and align the image. */
.aff-lp .logo{display:inline-flex;align-items:center;line-height:0}
.aff-lp .logo img{display:block;width:auto;height:37px}
.aff-lp .footer-brand .logo img{height:41px}
@media(max-width:650px){.aff-lp .logo img{height:32px}.aff-lp .footer-brand .logo img{height:34px}}

/* assets/css/common.css sets `br{display:none}` theme-wide. This design uses
   <br> for the hero line break, so restore it inside the page body. The .aff-lp
   prefix also outranks the theme's bare `br`, whatever the load order. */
.aff-lp br{display:inline}


/* ===== Design-match additions (artwork generated for this template) ===== */

/* Candlestick artwork behind the hero and the closing CTA band. */
.aff-lp .section-candles{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.5;pointer-events:none;z-index:0}
.aff-lp .hero>.container{position:relative;z-index:1}
.aff-lp .cta-banner>.section-candles{position:absolute;opacity:.55}

/* Laptop frame around the dashboard preview. */





/* Icon artwork replaces the design's placeholder glyphs. */
.aff-lp .benefit-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;
  border-radius:9px;background:#13301f;border:1px solid #2c5a3e}
.aff-lp .benefit-icon img{display:block;width:20px;height:20px}
.aff-lp .bigicon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;
  border-radius:11px;background:#13301f;border:1px solid #2c5a3e}
.aff-lp .bigicon img{display:block;width:24px;height:24px}
.aff-lp .tier-icon img{display:block;width:26px;height:26px;margin:0 auto}
.aff-lp .audiences .bigicon{margin-bottom:4px}

/* Arrows between the How It Works steps. */
.aff-lp .steps{grid-template-columns:1fr auto 1fr auto 1fr;align-items:stretch}
.aff-lp .step-arrow{display:flex;align-items:center;justify-content:center;opacity:.65}
.aff-lp .step-arrow img{display:block;width:20px;height:20px}

/* Footer gains a fourth "Stay Connected" column. */
.aff-lp .footer-grid{grid-template-columns:1.5fr repeat(4,1fr)}
.aff-lp .footer-social{display:flex;align-items:center;gap:12px;margin-top:4px}
.aff-lp .footer-social a{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;
  border-radius:8px;background:#11261a;border:1px solid #2a4a35;transition:border-color .15s,transform .15s}
.aff-lp .footer-social a:hover{border-color:var(--green);transform:translateY(-2px)}
.aff-lp .footer-social img{display:block;width:16px;height:16px}

@media(max-width:900px){
  .aff-lp .steps{grid-template-columns:1fr}
  .aff-lp .step-arrow{display:none}
  .aff-lp .footer-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:650px){
  .aff-lp .footer-grid{grid-template-columns:repeat(2,1fr)}
  .aff-lp .hero-device .dashboard-shell{transform:none}
}

/* ===== Mockup parity pass ===== */

/* The design markup carries the CTA twice so the mobile menu has one of its
   own. Only one may show at a time, or the header renders two buttons. */
.aff-lp .nav-links .btn{display:none}
@media(max-width:650px){
  .aff-lp .nav-links .btn{display:inline-flex;width:100%}
  .aff-lp .nav>.btn{display:none}
}

/* Buttons in the mockup are a flat green, not the lime gradient. */
/* Button colours sampled from the approved mockup. global.css styles buttons
   as `a.btn.btn-primary`, which outranks a bare .btn-primary however late this
   file loads, so these match that specificity to win on source order.
   The header CTA is a deeper green with white text; the hero and closing CTA
   are the brighter green with dark text. */
.aff-lp .btn-primary,.aff-lp a.btn.btn-primary,.aff-lp button.btn.btn-primary{background:#27e75d;color:#05220d;box-shadow:none}
.aff-lp .btn-primary:hover,.aff-lp a.btn.btn-primary:hover,.aff-lp a.btn.btn-primary:focus,.aff-lp button.btn.btn-primary:hover{background:#3df06f;color:#05220d}

.aff-lp header .btn-primary,.aff-lp header a.btn.btn-primary{background:#0ab84a;color:#fff}
.aff-lp header .btn-primary:hover,.aff-lp header a.btn.btn-primary:hover,.aff-lp header a.btn.btn-primary:focus{background:#0dd156;color:#fff}
.aff-lp .cta-banner .btn-primary,.aff-lp .hero .btn-primary{box-shadow:0 10px 26px rgba(34,197,94,.25)}

/* FAQ uses a chevron that flips when open, not a +/- sign. */
.aff-lp .faq summary:after{content:"";position:absolute;right:20px;top:50%;width:9px;height:9px;margin-top:-6px;
  border-right:2px solid var(--green);border-bottom:2px solid var(--green);
  transform:rotate(45deg);transition:transform .18s}
.aff-lp .faq details[open] summary:after{content:"";transform:rotate(-135deg);margin-top:-2px}

/* Hero laptop: bezel around the dashboard plus a tapered base. */
.aff-lp .hero-device{position:relative;perspective:1500px}
.aff-lp .laptop{position:relative;transform:rotateY(-6deg) rotateX(3deg);transform-style:preserve-3d}
.aff-lp .laptop-screen{position:relative;border-radius:14px 14px 6px 6px;padding:13px 13px 16px;
  background:linear-gradient(160deg,#39705199,#0c1812);border:1px solid #3f7a58;
  box-shadow:0 26px 60px #000a,0 0 46px rgba(46,238,106,.14)}
.aff-lp .laptop-screen:before{content:"";position:absolute;top:6px;left:50%;transform:translateX(-50%);
  width:52px;height:4px;border-radius:3px;background:#2b5540}
.aff-lp .laptop .dashboard-shell{transform:none;border-radius:9px;padding:13px;
  box-shadow:none;border-color:#2e5a40;background:linear-gradient(145deg,#13251b,#07110d)}
.aff-lp .laptop-base{display:block;position:relative;height:12px;width:116%;margin:0 0 0 -8%;
  border-radius:0 0 12px 12px;background:linear-gradient(180deg,#3c7154,#101d16);
  box-shadow:0 18px 32px #0009}
.aff-lp .laptop-base:after{content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);
  width:92px;height:5px;border-radius:0 0 6px 6px;background:#20402e}
@media(max-width:900px){.aff-lp .laptop{transform:none}.aff-lp .hero-device{max-width:620px;margin-inline:auto}}

/* The How It Works icons are filled illustrations, so they want more room and
   no tinted chip behind them. */
.aff-lp .steps .bigicon{width:52px;height:52px;flex:0 0 52px;background:transparent;border:0}
.aff-lp .steps .bigicon img{width:44px;height:44px}

/* The header CTA is smaller than the body CTAs in the mockup: measured against
   the container it is ~146x32 where the hero button is ~244x43, but the design
   CSS sizes every .btn the same. */
.aff-lp header .btn-primary,.aff-lp header a.btn.btn-primary{min-height:32px;padding:5px 14px;font-size:12.5px;border-radius:7px}

