This post contains affiliate links (including Amazon); I may earn a commission at no cost to you.
What the research says
Quick answer: No. There are no controlled human trials showing red LED light fades dark spots, and the only randomised double-blind trial of LED for melasma found no significant change in pigment score. Visible light is an established cause of pigmentation, blue light most of all, and melasma and post-inflammatory hyperpigmentation are both recognised as being made worse by it. If dark spots are your main concern, an LED mask is the wrong purchase.
Some links in this post are affiliate links. If you buy through them I earn a commission at no extra cost to you. I bought the LED mask I own with my own money, partly for this exact reason, and it did not do what I hoped. I am not a doctor and nothing here is medical advice.
Written by Anna Katherine Page, who bought an LED mask for hyperpigmentation and went looking for the evidence afterwards. Last updated September 4, 2026.
Key takeaways
I could not find a single randomised controlled trial showing red LED light reduces hyperpigmentation, dark spots or post-inflammatory hyperpigmentation.
A 2025 narrative review of 59 red light dermatology studies covering 1,882 patients lists the indications with evidence. Pigmentary disorders are not among them.
The one randomised, double-blind LED melasma trial compared amber light against tranexamic acid cream. Neither the MASI score nor the global assessment moved, in either group.
Visible light causes pigmentation. Blue is the most potent inducer, at 40 to 80 J/cm². Red needs roughly 150 J/cm².
Light-induced pigmentation lasts longer and goes deeper in Fitzpatrick IV to VI, and melasma and post-inflammatory hyperpigmentation are both specifically listed as exacerbated by visible light.
The blue mode sold for acne is the wavelength with the strongest evidence for causing pigment, and acne patients with deeper skin tones are exactly the group most prone to post-inflammatory hyperpigmentation.
What does have evidence for dark spots: sunscreen that blocks visible light, topical tyrosinase inhibitors, retinoids, and in-office IPL. Not a home LED mask.
Why I went looking for this
I bought my LED mask after a year and a half of research, and I said this on camera at the time:
“I have a lot of concerns with hyperpigmentation in my skin, and also acne.”
Those were my two reasons. Now, having gone through the actual literature for this post, I have to tell you that I picked a device for two jobs it has almost no evidence of doing. I still use the mask, and I still think it is a reasonable purchase for other reasons, which I go through in my full review. But I was wrong about why I was buying it, and if you are about to make the same purchase for the same reason, I would rather you heard it here.
Is there any evidence red light therapy fades dark spots?
I searched for randomised controlled trials of red LED for hyperpigmentation, dark spots and post-inflammatory hyperpigmentation. Every result on the first pages was a device retailer or a content farm. No primary trial surfaced.
The most useful negative evidence is a 2025 narrative review in Bratislava Medical Journal covering 59 red light studies and 1,882 patients. It enumerates the dermatological indications where red light has been studied: acne, basal cell carcinoma, squamous cell carcinoma, actinic keratosis, rosacea, psoriasis, hidradenitis suppurativa, mycosis fungoides, warts, vitiligo, necrobiosis lipoidica, granuloma annulare and photoaging.
Pigmentary disorders are not on that list. Not as a weak indication. Not at all.
What happened when someone actually tested LED on melasma?
Somebody did run the trial, and the result is worth knowing about.
Galache and colleagues, publishing in Lasers in Medical Science in 2025, ran a randomised, double-blind non-inferiority trial in 21 women with melasma over twelve weeks. One group got amber LED photobiomodulation plus a placebo cream. The other got a sham LED device plus 5 percent liposomal tranexamic acid cream, which is a real melasma treatment.
The finding: “No significant differences were observed in the MASI or PGA scores, within or between groups.” MASI is the standard melasma severity index. Neither treatment moved it.
But quality of life scores improved in both arms. That combination, a subjective measure improving while the objective measure sits still, in both the active and the control group, is close to a textbook picture of placebo response.
The trial was small and underpowered at 51 percent and terminated early, so it does not prove LED does nothing. What it does is remove the excuse that nobody has looked.
Can red light therapy make pigmentation worse?
This is the part that changed how I think about the whole category.
Visible light causes pigmentation. This is well established and it is why visible-light-blocking sunscreens exist. A 2026 review in Dermatology and Therapy puts the numbers on it: blue light “is the most potent inducer of pigmentation at fluences of 40 to 80 J/cm², while red light requires much higher fluences, approximately 150 J/cm².”
The same review states that visible-light-induced pigmentation “is more sustained, persisting 10 to 22 days, is deeper in higher skin phototypes, and increases with increased exposure,” and that “conditions such as melasma and post-inflammatory hyperpigmentation are exacerbated by” visible light. The mechanism is Opsin-3, a receptor in melanocytes that responds to blue light by driving melanin production.
Now do the arithmetic on a mask.
Fluence thresholds from Visser et al. 2026 compared against typical consumer LED mask output. A mask measuring 30 mW/cm2 delivers about 18 J/cm2 in a ten minute session.
Threshold to induce pigment
One 10-min mask session
Cumulative over a course
Red light
~150 J/cm²
~18 J/cm²
Well under, per session
Blue light
40 to 80 J/cm²
Varies by device
A daily acne protocol in the published literature accumulated about 320 J/cm²
Red light in a single mask session sits comfortably below the threshold. That is reassuring and I want to say it clearly.
Blue is a different conversation. Its threshold is roughly half of red’s, and the acne protocols that produced results in the literature ran daily for twelve weeks. Papageorgiou’s landmark blue and red acne trial accumulated around 320 J/cm².
The gap nobody has looked at. The wavelength sold for acne is the wavelength with the strongest evidence for inducing hyperpigmentation. Acne patients with Fitzpatrick IV to VI skin are precisely the population most prone to post-inflammatory hyperpigmentation. I could not find a single trial that has systematically looked for blue-light-induced pigmentation as an adverse outcome in acne phototherapy. That is not me claiming harm. It is me telling you that a question that obviously should have been asked has not been.
There is also real-world signal. FDA’s adverse event database holds a report from July 2026 describing “burn marks or hyperpigmentation” following prolonged use of an LED face mask, and another describing “dark discoloration and bruising” on a user’s face after using a different mask. Those are unverified passive reports and causality is not established, which is exactly how they should be read. They are not nothing either.
And a 2026 review specifically records a lupus-like reaction following red LED mask therapy, while a melasma-focused review states that “recent professional opinions warn against the uncontrolled application of red and blue LED mask devices in melasma-prone individuals, as the stimulation of melanocytes with a subsequent increase of heat is possible.”
Does skin tone change the answer?
Yes, in two directions, and both matter.
On safety: light-induced pigmentation is deeper and longer-lasting in Fitzpatrick IV to VI. If you have a deeper skin tone and a pigmentary concern, an unsupervised home light device is a worse bet for you than for someone with fair skin, not a better one.
On effectiveness: melanin absorbs light that was aimed at something else. The 2025 review notes a differential efficacy signal, with one study finding a lower clearance rate in individuals with pigmented skin even after accounting for other lesion characteristics. Equal device output is not equal delivered dose across skin types, and no facial trial has adjusted dose for this.
The claim you will see everywhere is “safe for all skin types.” What the literature actually supports is narrower: LED photobiomodulation is non-ablative and athermal by design, so it does not carry the burn and post-inflammatory hyperpigmentation risk that IPL and ablative lasers do. That is a real and defensible advantage. It is not the same as a documented finding of safety across all phototypes, and the reviews themselves describe skin-type reporting in this literature as limited.
This is one place where the at-home device genuinely does beat the clinic. I have written about the other side of it, where going to a clinic does not solve the skin tone limit either, in my comparison of at-home IPL against an in-office photofacial.
What actually works on dark spots?
I am not going to leave you with only a no.
Sunscreen that blocks visible light. This is the single highest-return move and the most skipped. Because visible light drives pigmentation, a standard UV-only sunscreen is not enough for melasma. Trials of sunscreens combining UV protection with visible-light protection have shown benefit in preventing melasma relapse. Tinted formulas containing iron oxides are the practical version of this.
Topical tyrosinase inhibitors. Tranexamic acid, azelaic acid, and the prescription options your dermatologist will discuss. These act on the pigment pathway itself, which is the part an LED mask never touches.
Retinoids. Topical tretinoin for photodamage has a systematic review and meta-analysis of randomised trials behind it, which is more than anything in the LED literature can say. I use the PRMR Youth Radiance serum.
In-office IPL, with caveats. A 2025 systematic review pooling 41 trials and 3,234 participants found IPL success rates of 74.6 to 90 percent on solar lentigines, comparable to picosecond lasers. That is a real, large evidence base. It comes with genuine risk in deeper skin tones and it is a clinic procedure, not a device you buy.
What to do if you have melasma specifically: see a dermatologist rather than buying a device. Melasma is the one pigmentary condition where the wrong light treatment can set you back months.
So should you buy an LED mask at all?
Maybe, but not for this.
The honest case for a home LED mask is red and near-infrared light on general skin texture and tone, where the evidence is modest and mixed but not absent. Buy it knowing the ceiling is low, the timeline is six weeks minimum, and the best-designed sham-controlled facial trial found nothing on its blinded primary outcome.
Do not buy it as a dark spot treatment. That purchase has no evidence behind it, and if you have melasma it may be actively the wrong move.
The mask I own and use is the INIA GLOW. It measures about 30 mW/cm² independently, the same as a mask that costs three times more, and it is wireless, which is the reason I have kept using it. I bought it for my hyperpigmentation. I keep it for other reasons.
If you want the mask anyway, buy it for the right reason
Red and near-infrared on texture and tone. Not dark spots. Ten minutes, three times a week, six weeks before you judge it.
No. There are no controlled human trials showing red LED light reduces hyperpigmentation or dark spots, and a 2025 review of 59 red light dermatology studies covering 1,882 patients does not list pigmentary disorders among the indications with evidence.
Does red light therapy help melasma?
The one randomised double-blind trial found no significant change in MASI or global assessment scores, in either the LED group or the tranexamic acid comparison group. Separately, visible light is an established melasma aggravator and professional opinion warns against uncontrolled use of LED masks in melasma-prone individuals. If you have melasma, see a dermatologist rather than buying a device.
Can an LED face mask cause hyperpigmentation?
Visible light induces pigmentation at known thresholds: about 40 to 80 J/cm2 for blue light and roughly 150 J/cm2 for red. A single ten minute red session at typical mask output delivers about 18 J/cm2, well under the red threshold. Blue is the concern, because its threshold is lower and published acne protocols accumulate far more. FDA’s adverse event database contains user reports of hyperpigmentation and discoloration after LED mask use, though these are unverified and causality is not established.
Is red light therapy safe for darker skin tones?
LED photobiomodulation is non-ablative and athermal, so it does not carry the burn and post-inflammatory hyperpigmentation risk that IPL and ablative lasers do in Fitzpatrick IV to VI. That advantage is real. But skin-type reporting in the LED literature is limited, light-induced pigmentation is deeper and longer-lasting in higher phototypes, and melanin absorbs light meant for other targets so the delivered dose differs. “Safe for all skin types” overstates what has been shown.
What wavelength is best for hyperpigmentation?
None of them have controlled evidence for it. The amber and yellow band, around 570 to 590nm, is the weakest of the four in the literature overall, with a documented failed replication for wrinkles and a null result for melasma. Wavelength is not the variable to optimise here, because the indication itself lacks support.
What actually fades dark spots?
Sunscreen that blocks visible light as well as UV, which for melasma means tinted formulas with iron oxides. Topical tyrosinase inhibitors such as tranexamic acid and azelaic acid. Retinoids, which have a systematic review and meta-analysis of randomised trials behind them for photodamage. And in-office IPL, which a 2025 review of 41 trials and 3,234 participants found clears solar lentigines at rates of 74.6 to 90 percent.
Why do so many LED masks advertise dark spot benefits then?
Because the claims are largely unpoliced. In November 2025 the UK Advertising Standards Authority upheld four complaints against LED face mask sellers for making unauthorised medicinal claims. The FDA clearances that do exist for this device class cover wrinkles and mild to moderate acne, and nothing about pigment. Anyone selling an LED mask for dark spots is ahead of the evidence and, in some markets, ahead of the regulator.
I already bought an LED mask for dark spots. Should I return it?
Not necessarily. If you have melasma or a pigmentary disorder, stop and speak to a dermatologist first. Otherwise, keep it and use it for what it does have modest evidence for, which is general texture and tone with red and near-infrared light, at ten minutes two or three times a week. Just add a visible-light-blocking sunscreen, which is the thing that will actually move your pigment.
About the author. Anna Katherine Page reviews beauty devices, home tools and garden equipment at annakatherinepage.com and on YouTube at @ak_page. She buys the products she reviews and reads the underlying research before she writes about them, including when it contradicts a purchase she has already made. She lives in Seneca, South Carolina.
window.fluent_form_ff_form_instance_6_1 = {"id":"6","ajaxUrl":"https:\/\/annakatherinepage.com\/wp-admin\/admin-ajax.php","settings":{"layout":{"labelPlacement":"top","asteriskPlacement":"asterisk-right","helpMessagePlacement":"with_label","errorMessagePlacement":"inline","cssClassName":""},"restrictions":{"denyEmptySubmission":{"enabled":false}}},"form_instance":"ff_form_instance_6_1","form_id_selector":"fluentform_6","rules":{"input_text":{"required":{"value":false,"message":"This field is required","global_message":"This field is required","global":true}},"email":{"required":{"value":true,"message":"This field is required","global_message":"This field is required","global":true},"email":{"value":true,"message":"This field must contain a valid email","global_message":"This field must contain a valid email","global":true}},"checkbox":{"required":{"value":true,"message":"This field is required","global_message":"This field is required","global":true},"max_selection":{"value":"","message":"You have selected more options than allowed","global_message":"You have selected more options than allowed","global":true},"min_selection":{"value":"","message":"Please select at least the minimum number of options","global_message":"Please select at least the minimum number of options","global":true}}},"debounce_time":300,"file_upload_settings":[]};
(function(){
if (!window.matchMedia || !window.matchMedia('(max-width: 781px)').matches) return;
var aff = /go\.shopmy\.us|amzn\.to|amazon\.com\/.*tag=|walmrt\.us|pxf\.io|shareasale|awin1|anrdoezrs|dpbolvw|jdoqocy|tkqlhce|kqzyfj|sjv\.io|linksynergy/i;
var root = document.querySelector('.wp-block-post-content') || document.querySelector('.entry-content');
if (!root) return;
var btns = root.querySelectorAll('a.wp-block-button__link');
var first = null;
for (var i = 0; i < btns.length; i++) { if (aff.test(btns[i].href)) { first = btns[i]; break; } }
if (!first) return;
var name = '';
var p = root.querySelector('p');
if (p) { var l = p.querySelector('a'); if (l && l.href === first.href) name = l.textContent; }
if (!name) name = first.textContent;
var bar = document.createElement('div');
bar.className = 'ak-sticky-buy';
bar.setAttribute('role', 'region');
bar.setAttribute('aria-label', 'Top pick');
var span = document.createElement('span'); span.className = 'ak-sb-name'; span.textContent = 'Top pick: ' + name.trim();
var a = document.createElement('a'); a.href = first.href; a.target = '_blank'; a.rel = 'nofollow sponsored noopener'; a.textContent = 'Shop now';
var x = document.createElement('button'); x.type = 'button'; x.setAttribute('aria-label', 'Close'); x.textContent = '×';
bar.appendChild(span); bar.appendChild(a); bar.appendChild(x);
document.body.appendChild(bar);
var closed = false;
x.addEventListener('click', function(){ closed = true; bar.classList.remove('is-on'); });
function check(){
if (closed) return;
var r = first.getBoundingClientRect();
var footer = document.querySelector('footer');
var nearEnd = footer && footer.getBoundingClientRect().top < window.innerHeight;
if (r.bottom < 0 && !nearEnd) bar.classList.add('is-on'); else bar.classList.remove('is-on');
}
window.addEventListener('scroll', check, { passive: true });
check();
})();
(function () {
var c = document.body.className;
c = c.replace(/woocommerce-no-js/, 'woocommerce-js');
document.body.className = c;
})();
var fluentFormVars = {"ajaxUrl":"https://annakatherinepage.com/wp-admin/admin-ajax.php","forms":[],"step_text":"Step %activeStep% of %totalStep% - %stepTitle%","step_completed_text":"Completed","is_rtl":"","date_i18n":{"previousMonth":"Previous Month","nextMonth":"Next Month","months":{"shorthand":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"longhand":["January","February","March","April","May","June","July","August","September","October","November","December"]},"weekdays":{"longhand":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"shorthand":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},"daysInMonth":[31,28,31,30,31,30,31,31,30,31,30,31],"rangeSeparator":" to ","weekAbbreviation":"Wk","scrollTitle":"Scroll to increment","toggleTitle":"Click to toggle","amPM":["AM","PM"],"yearAriaLabel":"Year","firstDayOfWeek":1},"pro_version":"","fluentform_version":"6.2.18","force_init":"","stepAnimationDuration":"350","upload_completed_txt":"100% Completed","upload_start_txt":"0% Completed","uploading_txt":"Uploading","choice_js_vars":{"noResultsText":"No results found","loadingText":"Loading...","noChoicesText":"No choices to choose from","itemSelectText":"Press to select","maxItemTextSingular":"Only %%maxItemCount%% option can be added","maxItemTextPlural":"Only %%maxItemCount%% options can be added"},"input_mask_vars":{"clearIfNotMatch":false},"nonce":"6be8714e9c","file_delete_nonce":"bee8ad762a","form_id":"6","step_change_focus":"1","has_cleantalk":"","pro_payment_script_compatible":"","token_nonce":"9d21d2b230"};
var fluentform_submission_messages_6 = {"file_upload_in_progress":"File upload in progress. Please wait...","javascript_handler_failed":"Javascript handler could not be loaded. Form submission has been failed. Reload the page and try again"};
var fluentform_payment_messages_6 = {"stock_out_message":"This Item is Stock Out","item_label":"Item","price_label":"Price","qty_label":"Qty","line_total_label":"Line Total","sub_total_label":"Sub Total","discount_label":"Discount","total_label":"Total","signup_fee_label":"Signup Fee","trial_label":"Trial","processing_text":"Processing...","confirming_text":"Confirming..."};
var fluentform_save_progress_messages_6 = {"copy_button":"Copy","email_button":"Email","email_placeholder":"Your Email Here","copy_success":"Copied"};
var fluentform_address_messages_6 = {"please_wait":"Please wait ...","location_not_determined":"Could not determine address from location.","address_fetch_failed":"Failed to fetch address from coordinates.","geolocation_failed":"Geolocation failed or was denied.","geolocation_not_supported":"Geolocation is not supported by this browser."};
var fluentform_gateway_messages_6 = {"request_failed":"Request failed. Please try again","payment_failed":"Payment process failed!","no_method_found":"No method found","processing_text":"Processing..."};
var fluentform_submission_messages_global = {"javascript_handler_failed":"Javascript handler could not be loaded. Form submission has been failed. Reload the page and try again"};
var fluentform_address_messages_global = {"please_wait":"Please wait ...","location_not_determined":"Could not determine address from location.","address_fetch_failed":"Failed to fetch address from coordinates.","geolocation_failed":"Geolocation failed or was denied.","geolocation_not_supported":"Geolocation is not supported by this browser."};
//# sourceURL=fluent-form-submission-js-extra
(function(){
var d = document.querySelector('.ak-ux-checked');
var h1 = document.querySelector('h1.wp-block-post-title');
if (d && h1 && !(h1.nextElementSibling && h1.nextElementSibling.classList.contains('ak-ux-checked'))) {
h1.insertAdjacentElement('afterend', d);
}
/* Table typography helpers: short mobile headers, rank badges, brand under the name */
(function(){
var shortMap = {
'listed value': 'Value',
'below value': 'Save',
'price at ulta': 'Price',
'price at sephora': 'Price',
'best gift for someone who wants': 'Best for',
'what is inside': 'Inside',
'what it is': 'What',
'where to buy': 'Shop',
'fiber, as the brand states it': 'Fiber'
};
document.querySelectorAll('figure.ak-quick-picks th').forEach(function(th){
if (th.querySelector('.ak-th-short, .ak-th-full')) return;
var full = (th.textContent || '').replace(/\s+/g, ' ').trim();
if (!full) return;
var key = full.toLowerCase();
var short = shortMap[key];
if (!short && /^listed value/.test(key)) short = 'Value';
if (!short && /^below value/.test(key)) short = 'Save';
if (!short && /^price\b/.test(key) && key !== 'price') short = 'Price';
if (short && short.toLowerCase() !== key) {
th.textContent = '';
var fullEl = document.createElement('span');
fullEl.className = 'ak-th-full';
fullEl.textContent = full;
var shortEl = document.createElement('span');
shortEl.className = 'ak-th-short';
shortEl.textContent = short;
th.appendChild(fullEl);
th.appendChild(shortEl);
}
});
document.querySelectorAll('figure.ak-quick-picks td > span').forEach(function(sp){
var st = sp.getAttribute('style') || '';
if (/border-radius\s*:\s*50%/.test(st)) sp.classList.add('ak-rank-badge');
});
document.querySelectorAll('figure.ak-quick-picks td').forEach(function(td){
var item = td.querySelector(':scope > .ak-qp-item');
if (!item) return;
var text = item.querySelector('.ak-qp-text');
if (!text) return;
Array.prototype.slice.call(td.children).forEach(function(child){
if (child !== item && child.tagName === 'DIV') {
child.classList.add('ak-qp-brand');
text.appendChild(child);
}
});
});
})();
var start = document.getElementById('ak-start-here');
if (!start) return;
if (!window.matchMedia || !window.matchMedia('(max-width: 781px)').matches) return;
if (document.getElementById('ak-ux-sticky')) return;
var shop = start.querySelector('a.ak-shop-btn') || document.querySelector('a.ak-shop-btn');
if (!shop) return;
var nameEl = start.querySelector('h2');
var priceEl = start.querySelector('.ak-start-price');
var label = 'Top pick';
if (nameEl) label += ': ' + nameEl.textContent.trim();
if (priceEl) {
var amt = (priceEl.textContent || '').replace(/\s+/g, ' ').trim().split('checked')[0].trim();
if (amt) label += ' · ' + amt;
}
var bar = document.createElement('div');
bar.id = 'ak-ux-sticky';
bar.setAttribute('role', 'region');
bar.setAttribute('aria-label', 'Top pick');
var span = document.createElement('span'); span.className = 'ak-sb-name'; span.textContent = label;
var a = document.createElement('a');
a.href = shop.href; a.target = '_blank'; a.rel = 'nofollow sponsored noopener'; a.textContent = 'Shop now';
var x = document.createElement('button'); x.type = 'button'; x.setAttribute('aria-label', 'Close'); x.textContent = '×';
bar.appendChild(span); bar.appendChild(a); bar.appendChild(x);
document.body.appendChild(bar);
var closed = false;
x.addEventListener('click', function(){ closed = true; bar.classList.remove('is-on'); });
function check(){
if (closed) return;
if (window.innerWidth >= 782) { bar.classList.remove('is-on'); return; }
var r = start.getBoundingClientRect();
var footer = document.querySelector('footer');
var nearEnd = footer && footer.getBoundingClientRect().top < window.innerHeight;
if (r.bottom < 8 && !nearEnd) bar.classList.add('is-on');
else bar.classList.remove('is-on');
}
window.addEventListener('scroll', check, {passive:true});
window.addEventListener('resize', check);
check();
})();
(function(){
var AJAX="https:\/\/annakatherinepage.com\/wp-admin\/admin-ajax.php",LOAD=Date.now(),freshP=null;
function post(d){return fetch(AJAX+"?t="+Date.now(),{method:"POST",credentials:"same-origin",cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams(d).toString()}).then(function(r){return r.json();});}
function getFresh(){if(freshP){return freshP;}freshP=post({action:"akp_ffc_fresh_nonce"}).then(function(j){if(j&&j.success&&j.data){if(window.fluentFormVars){window.fluentFormVars.token_nonce=j.data.token_nonce;}var ns=document.querySelectorAll('input[name$="_fluentformnonce"]');for(var i=0;i<ns.length;i++){ns[i].value=j.data.form_nonce;}return j.data;}freshP=null;return null;}).catch(function(){freshP=null;return null;});return freshP;}
function fid(f){var m=(f.className||"").match(/fluent_form_(\d+)/);return m?m[1]:(f.getAttribute("data-form_id")||"");}
function fld(f){return f.querySelector(".fluent-form-token-field");}
function stale(f){var t=fld(f);if(!t){return false;}return !t.value||(Date.now()-(f.__akpAt||LOAD))>45*60*1000;}
function mint(f){if(f.__akpP){return f.__akpP;}var t=fld(f);if(!t){return Promise.resolve(true);}
f.__akpP=getFresh().then(function(fr){var n=(fr&&fr.token_nonce)||(window.fluentFormVars&&window.fluentFormVars.token_nonce)||"";return post({action:"fluentform_generate_protection_token",form_id:fid(f),nonce:n});}).then(function(j){f.__akpP=null;if(j&&j.success&&j.data&&j.data.token){t.value=j.data.token;f.classList.add("ff_tokenized");f.classList.remove("ff_tokenizing");f.__akpAt=Date.now();return true;}return false;}).catch(function(){f.__akpP=null;return false;});return f.__akpP;}
function init(){var fs=document.querySelectorAll("form.frm-fluent-form");if(!fs.length){return;}var any=false;for(var i=0;i<fs.length;i++){if(fld(fs[i])){any=true;}}if(!any){return;}getFresh();
if("IntersectionObserver" in window){var io=new IntersectionObserver(function(es){es.forEach(function(e){if(e.isIntersecting&&stale(e.target)){mint(e.target);}});},{rootMargin:"900px 0px"});for(var k=0;k<fs.length;k++){if(fld(fs[k])){io.observe(fs[k]);}}}
document.addEventListener("focusin",function(e){var f=e.target&&e.target.closest&&e.target.closest("form.frm-fluent-form");if(f&&stale(f)){mint(f);}},true);
document.addEventListener("submit",function(e){var f=e.target;if(!f||!f.classList||!f.classList.contains("frm-fluent-form")){return;}if(f.__akpPass){f.__akpPass=false;return;}if(!stale(f)){return;}e.preventDefault();e.stopImmediatePropagation();
mint(f).then(function(){f.__akpPass=true;window.ff_sumitting_form=false;if(f.requestSubmit){var b=f.querySelector("[type=submit]");try{b?f.requestSubmit(b):f.requestSubmit();}catch(x){if(window.jQuery){window.jQuery(f).trigger("submit");}}}else if(window.jQuery){window.jQuery(f).trigger("submit");}});},true);}
var CS_PDF="https://annakatherinepage.com/wp-content/uploads/2026/11/flower-price-cheat-sheet.pdf";
var CS_MSG='<p>Your Flower Price Cheat Sheet is ready. <a href="'+CS_PDF+'">Download the two-page PDF</a> now.</p><p>A copy is on its way to your inbox too. Give it a minute, and peek in spam the first time so the next one lands in your inbox.</p>';
function fixCS(){var ms=document.querySelectorAll(".fluentform_wrapper_5 .ff-message-success");for(var i=0;i<ms.length;i++){if(!ms[i].__akpCS&&(ms[i].textContent||"").indexOf("Download the two-page PDF")===-1){ms[i].__akpCS=1;ms[i].innerHTML=CS_MSG;}}}
function initCS(){if(!document.querySelector("form.fluent_form_5")){return;}try{new MutationObserver(fixCS).observe(document.body,{childList:true,subtree:true});}catch(x){}document.addEventListener("fluentform_submission_success",function(){setTimeout(fixCS,50);setTimeout(fixCS,600);});}
function boot(){init();initCS();}
if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",boot);}else{boot();}
})();
(function () {
var LABEL = "Send me the cheat sheet";
var PDF = "https://annakatherinepage.com/wp-content/uploads/2026/11/flower-price-cheat-sheet.pdf";
var CONFIRM = '<p>Your Flower Price Cheat Sheet is ready. <a href="' + PDF + '">Download the two-page PDF</a> now.</p><p>Give the email a minute, and peek in spam the first time so the next one lands in your inbox. The formulas use labeled sample numbers. Type over them with yours.</p>';
function retitle() {
var buttons = document.querySelectorAll(".fluent_form_5 .ff-btn-submit, form.fluent_form_5 .ff-btn-submit, .frm-fluent-form.fluent_form_5 .ff-btn-submit");
for (var i = 0; i < buttons.length; i++) {
var b = buttons[i];
if ((b.textContent || "").indexOf("cheat sheet") === -1) {
b.textContent = LABEL;
b.setAttribute("aria-label", LABEL);
}
b.style.backgroundColor = "#5a6b4e";
b.style.borderColor = "#5a6b4e";
b.style.color = "#ffffff";
}
var styles = document.querySelectorAll(".ff-form-inline-style style");
for (var j = 0; j < styles.length; j++) {
var s = styles[j];
if ((s.textContent || "").indexOf("fluent_form_5") !== -1 && (s.textContent || "").indexOf("#123d2e") !== -1) {
s.textContent = s.textContent.replace(/#123d2e/g, "#5a6b4e");
}
}
}
if (document.readyState === "loading") document.addEventListener("DOMContentLoaded", retitle);
else retitle();
setTimeout(retitle, 400);
function maybeFixSuccess(root) {
if (!root) return;
var success = root.querySelector(".ff-message-success, .ff-el-success, .ff-form-success");
if (!success) return;
var t = (success.textContent || "").toLowerCase();
if (t.indexOf("inbox") !== -1 || t.indexOf("cheat sheet") === -1) {
success.innerHTML = CONFIRM;
}
}
document.addEventListener("fluentform_submission_success", function () {
maybeFixSuccess(document.querySelector(".fluentform_wrapper_5, #fluentform_5, .ff_form_wrapper_5"));
});
if (window.jQuery) {
window.jQuery(document).on("fluentform_submission_success", function () {
maybeFixSuccess(document.querySelector(".fluentform_wrapper_5, #fluentform_5, .ff_form_wrapper_5"));
});
}
})();
(function(){
function fix(){
var bar=document.getElementById('ak-ux-sticky'); var start=document.getElementById('ak-start-here');
if(!bar||!start||!document.querySelector('.akf-table,.akf-chart,.akf-decide')) return !!bar;
var span=bar.querySelector('.ak-sb-name'); var h=start.querySelector('h2'); var p=start.querySelector('.ak-start-price strong');
if(span&&h){ span.textContent='Top pick: '+h.textContent.replace(/\s+/g,' ').trim()+(p?' · '+p.textContent.replace(/\s+/g,' ').trim():''); }
return true;
}
var n=0; (function tick(){ if(fix()||++n>40) return; setTimeout(tick,150); })();
window.addEventListener('resize',function(){ setTimeout(fix,50); });
})();
(function(){
function rgb(c){var m=(c||"").match(/[0-9.]+/g);return m?m.map(Number):null;}
function lum(a){return (0.299*a[0]+0.587*a[1]+0.114*a[2])/255;}
function effbg(el){var n=el;while(n){var c=rgb(getComputedStyle(n).backgroundColor);if(c&&(c.length<4||c[3]>0.5))return c;n=n.parentElement;}return null;}
var sel="main h1,main h2,main h3,main h4,main p,main li,main span,#frc h1,#frc h2,#frc h3,#frc p,#frc span,#frc li";
document.querySelectorAll(sel).forEach(function(t){
var bg=effbg(t);
if(!bg) return;
if(lum(bg)<0.30){
var fc=rgb(getComputedStyle(t).color);
if(fc && lum(fc)<0.5){ t.style.setProperty("color","#f7f1e6","important"); }
}
});
})();
(function () {
function formIdFrom(ev, data) {
var id = "";
var form = null;
if (data) {
if (data.formId != null) id = String(data.formId);
else if (data.form_id != null) id = String(data.form_id);
form = data.form;
if (form && form.jquery) form = form[0];
}
if (!form && ev && ev.detail) {
form = ev.detail.form;
if (form && form.jquery) form = form[0];
if (!id) {
if (ev.detail.formId != null) id = String(ev.detail.formId);
else if (ev.detail.form_id != null) id = String(ev.detail.form_id);
}
}
if (!form && ev && ev.target && ev.target.nodeType === 1) {
form = ev.target.closest ? (ev.target.closest("form") || ev.target.closest("[id^='fluentform_']") || ev.target.closest("[class*='fluent_form_']")) : ev.target;
}
if (!id && form) {
var src = String((form.id || "") + " " + (form.className || "") + " " + (form.getAttribute && (form.getAttribute("data-form_id") || form.getAttribute("data-id") || "") || ""));
var m = src.match(/fluentform_wrapper_(\d+)/) || src.match(/fluentform_(\d+)/) || src.match(/fluent_form_(\d+)/);
if (m) id = m[1];
}
return id;
}
function newEventId() {
try {
if (window.crypto && typeof crypto.randomUUID === "function") return crypto.randomUUID();
} catch (err) {}
return "ff5lead_" + Date.now() + "_" + Math.random().toString(16).slice(2);
}
var lockUntil = 0;
function fireLead(ev, data) {
if (formIdFrom(ev, data) !== "5") return;
if (typeof window.fbq !== "function") return;
var now = Date.now();
if (now < lockUntil) return;
lockUntil = now + 2000;
var eid = newEventId();
try {
fbq("track", "Lead", { content_name: "Flower Price Cheat Sheet" }, { eventID: eid });
} catch (err) {}
}
document.addEventListener("fluentform_submission_success", function (ev) {
fireLead(ev, ev && ev.detail);
});
if (window.jQuery) {
window.jQuery(document).on("fluentform_submission_success", function (ev, data) {
fireLead(ev, data);
});
window.jQuery(document.body).on("fluentform_submission_success", function (ev, data) {
fireLead(ev, data);
});
}
})();
Leave a Reply