<?php 
$INC_DIR = $_SERVER['DOCUMENT_ROOT']."/v1/app/";
include $INC_DIR."src/common.php";

$mobile_detect = new Mobile_Detect;	
if ($mobile_detect->isMobile() && !$mobile_detect->isTablet()) {
  $url = $configs->mobile_path."?".$_SERVER['QUERY_STRING'];
  header("Location: $url");
}
$customer_details=get_customer_details($configs);
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo $configs->page_title; ?></title>
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <link href="assets/brand/favicon.png" rel="icon" type="image/png">

    <link href="assets/css/app.css" rel="stylesheet">
    <link href="assets/css/style.css" type="text/css" rel="stylesheet">
    <link href="assets/css/slick.css" type="text/css" rel="stylesheet">

    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Oswald:wght@400;500;600;700&family=Roboto+Condensed:ital,wght@0,400;0,700;1,400;1,700&display=swap"
          rel="stylesheet">
    <link href="assets/css/jquery.autocomplete.css" rel="stylesheet">
    <style>
    form {
        padding: 0;
    }
    .has-error{
        border: 2px solid #ff5e45 !important;
        background-image: url('./assets/images/icon-validation-bad.png') !important;
        background-position: right center !important;
        background-repeat: no-repeat !important;
        background-size: 30px !important;
    }
    .no-error{
        border: 2px solid #6abd6a !important;
        background-image: url('./assets/images/icon-validation-good.png') !important;
        background-position: right center !important;
        background-repeat: no-repeat !important;
        background-size: 30px !important;
    }
    .autocomplete-suggestions {
        width:100%;
        border: 1px solid #999;
        background: #FFF;
        overflow: auto;
        font-size: 12px;
        /**width: auto !important; */
    }
    .autocomplete-suggestions {
        overflow: auto;
        width: auto !important;
    }
    .autocomplete-suggestion {
        padding: 5px 5px;
        white-space: nowrap;
        overflow: hidden;
        /**overflow: visible; */
        cursor: pointer;
    }
    </style>
</head>
<body>
<div class="wrapper index-page">
    <div id="app">
        <header class="header">
            <div class="header__warning">
                <div class="container">
                    <span class="alert-color">Warning:</span> Due to extremely high media demand, there is limited
                    supply of
                    <span class="product-name"><?php echo $configs->step_1_name; ?></span> in stock as of <span
                            class="date-container"></span> <span class="hurry">HURRY! <span
                                id="time">05:38.07</span>
                    </span>
                </div>
            </div>

            <div class="container row">
                <img alt="" class="header__logo" src="assets/brand/logo2-strips-white.png" width="176">
                <div class="header__info row">
                    <div class="header__info_side">
                        <span>Get My Free Bottle!</span>
                        <p><span>Voted #1</span> <?php echo $configs->step_1_name; ?> Product in USA</p>
                    </div>
                    <a class="header__btn heartbeat" href="#form1">RUSH MY ORDER</a>
                </div>
            </div>
        </header>

        <section class="first-section" id="form1">
            <div class="container">
                <div class="row">
                    <div class="first-section__side first-section__info">
                        <img alt="" src="assets/images/logo-ju.png">
                        <h1>MELT FAT <span>FAST!</span></h1>
                        <h2>WITHOUT DIET OR EXERCISE</h2>
                        <h3>Powerful New Formula Triggers Fat-Burning Ketosis!</h3>
                        <ul>
                            <li>Burn Fat for Energy not Carbs</li>
                            <li>Release Fat Stores</li>
                            <li>Increase Energy Naturally!</li>
                            <li>Love the Way You Feel!</li>
                        </ul>
                        <img alt="" src="assets/images/arrow.png">
                        <img alt="" class="security-icons" src="assets/images/security-icons.png">
                        <div class="first-section__bottle">
                            <img alt="" src="assets/brand/product.png">
                        </div>
                    </div>

                    <div class="first-section__side">
                        <h2 class="form-title">
                            <span>STEP 1</span> - TELL US WHERE TO SEND YOUR BOTTLE
                        </h2>
			                 <form class="form123" id="theForm" method="POST" action="/v1/app/src/ajax.php" onSubmit="return validate_optin_form()" autocomplete="on">		 
                                <input type="hidden" name="device" value="desktop">
                                <input type="hidden" name="pgtag" value="dindex">
                                <input type="hidden" name="pk" value="5">
                                <input type="hidden" name="shippingCountry" value="US">
								<?php
                                    foreach($customer_details['affiliate_details'] as $key => $value) {
                                        echo "<input type='hidden' name='".$key."' value='".$value."'>";
                                    }
                                ?>
                            <div class="row margin-bottom-5">
                                <div class="phone-6 columns form-holder">
                                    <label>First Name:</label>
                                </div>

                                <div class="phone-6 columns form-holder">
                                    <label>Last Name:</label>
                                </div>
                            </div>

                            <div class="row">
                                <div class="phone-6 columns form-holder">
                                    <input class="form-control required" data-placement="auto left" name="firstName"
                                           id='fields_fname' placeholder="First Name*" title="First Name" type="text"
                                           value="" onKeyUp="javascript: this.value = this.value.replace(/[^a-zA-Z]/g, '');" autocomplete="given-name">
                                </div>

                                <div class="phone-6 columns form-holder">
                                    <input class="form-control required" data-placement="auto left" name="lastName"
                                           id='fields_lname' placeholder="Last Name*" title="Last Name" type="text"
                                           value="" onKeyUp="javascript: this.value = this.value.replace(/[^a-zA-Z]/g, '');" autocomplete="family-name">
                                </div>
                            </div>

                            <div class=" margin-bottom-5">
                                <div class="phone-12 columns form-holder">
                                    <label>Address:</label>
                                </div>
                            </div>

                            <div class="phone-12 columns form-holder">
                                <input class="form-control required" data-placement="auto left" name="shippingAddress1"
                                       id="fields_address1" placeholder="Address*" title="Address" type="text" value="" onKeyUp="javascript: this.value = this.value.replace(/[^a-zA-Z0-9 .'\-#:;,]/g, '');" autocomplete="address-line1">
                            </div>

                            <div class=" margin-bottom-5 form-holder">
                                <div class="phone-12 columns">
                                    <label>Zip Code:</label>
                                </div>
                            </div>

                            <div class="phone-12 columns form-holder">
                                <input class="form-control required" data-placement="auto left" name="shippingZip"
                                       id="fields_zip" placeholder="Zip Code*" title="Zip Code" type="tel" minlength="5"
                                       maxlength="5" value=""
                                       onKeyUp="javascript: this.value = this.value.replace(/[^0-9]/g, '');" autocomplete="postal-code">
                            </div>

                            <div class=" margin-bottom-5 form-holder">
                                <div class="phone-12 columns">
                                    <label>City:</label>
                                </div>
                            </div>

                            <div class="phone-12 columns form-holder">
                                <input class="form-control required" data-placement="auto left" name="shippingCity"
                                       id="fields_city" placeholder="City*" title="City" type="text" value="" autocomplete="address-level2">
                            </div>

                            <div class="phone-12 columns form-holder">
                                <label>State:</label>
                                <select name="shippingState" id="fields_state" class="form-control required"
                                    data-selected="" data-error-message="State is required" autocomplete="address-level1">
                                    <option value="" onClick="">Select State</option>
                                    <option value="AL">Alabama (AL)</option>
                                    <option value="AK">Alaska (AK)</option>
                                    <option value="AS">American Samoa (AS)</option>
                                    <option value="AZ">Arizona (AZ)</option>
                                    <option value="AR">Arkansas (AR)</option>
                                    <option value="AE">Armed Forces (AE)</option>
                                    <option value="AA">Armed Forces Americas (AA)</option>
                                    <option value="AP">Armed Forces Pacific (AP)</option>
                                    <option value="CA">California (CA)</option>
                                    <option value="CO">Colorado (CO)</option>
                                    <option value="CT">Connecticut (CT)</option>
                                    <option value="DE">Delaware (DE)</option>
                                    <option value="DC">District of Columbia (DC)</option>
                                    <option value="FM">Federated States of Micronesia (FM)</option>
                                    <option value="FL">Florida (FL)</option>
                                    <option value="GA">Georgia (GA)</option>
                                    <option value="GU">Guam (GU)</option>
                                    <option value="HI">Hawaii (HI)</option>
                                    <option value="ID">Idaho (ID)</option>
                                    <option value="IL">Illinois (IL)</option>
                                    <option value="IN">Indiana (IN)</option>
                                    <option value="IA">Iowa (IA)</option>
                                    <option value="KS">Kansas (KS)</option>
                                    <option value="KY">Kentucky (KY)</option>
                                    <option value="LA">Louisiana (LA)</option>
                                    <option value="ME">Maine (ME)</option>
                                    <option value="MD">Maryland (MD)</option>
                                    <option value="MA">Massachusetts (MA)</option>
                                    <option value="MI">Michigan (MI)</option>
                                    <option value="MN">Minnesota (MN)</option>
                                    <option value="MS">Mississippi (MS)</option>
                                    <option value="MO">Missouri (MO)</option>
                                    <option value="MT">Montana (MT)</option>
                                    <option value="NE">Nebraska (NE)</option>
                                    <option value="NV">Nevada (NV)</option>
                                    <option value="NH">New Hampshire (NH)</option>
                                    <option value="NJ">New Jersey (NJ)</option>
                                    <option value="NM">New Mexico (NM)</option>
                                    <option value="NY">New York (NY)</option>
                                    <option value="NC">North Carolina (NC)</option>
                                    <option value="ND">North Dakota (ND)</option>
                                    <option value="MP">Northern Mariana Islands (MP)</option>
                                    <option value="OH">Ohio (OH)</option>
                                    <option value="OK">Oklahoma (OK)</option>
                                    <option value="OR">Oregon (OR)</option>
                                    <option value="PA">Pennsylvania (PA)</option>
                                    <option value="MH">Republic of Marshall Islands (MH)</option>
                                    <option value="RI">Rhode Island (RI)</option>
                                    <option value="SC">South Carolina (SC)</option>
                                    <option value="SD">South Dakota (SD)</option>
                                    <option value="TN">Tennessee (TN)</option>
                                    <option value="TX">Texas (TX)</option>
                                    <option value="UT">Utah (UT)</option>
                                    <option value="VT">Vermont (VT)</option>
                                    <option value="VI">Virgin Islands of the U.S. (VI)</option>
                                    <option value="VA">Virginia (VA)</option>
                                    <option value="WA">Washington (WA)</option>
                                    <option value="WV">West Virginia (WV)</option>
                                    <option value="WI">Wisconsin (WI)</option>
                                    <option value="WY">Wyoming (WY)</option>
                                </select>
                            </div>

                            <div class="row">
                                <div class="phone-6 columns form-holder">
                                    <label>Email:</label>
                                </div>
                                <div class="phone-6 columns form-holder">
                                    <label>Phone:</label>
                                </div>
                            </div>

                            <div class="row">
                                <div class="phone-6 columns form-holder">
                                    <input class="form-control required" data-placement="auto left" name="email"
                                           id="fields_email" placeholder="Email*" title="Email" type="email" value="" autocomplete="email">
                                </div>
                                <div class="phone-6 columns form-holder">
                                    <input class="form-control required" data-placement="auto left" name="phone"
                                           id="fields_phone" placeholder="Phone Number*" title="Phone Number" type="tel"
                                           value="" maxlength="12" autocomplete="tel-national">

                                </div>
                            </div>

                            <button class="button-submit loading-btn" type="submit">RUSH MY ORDER</button>
                        </form>
                    </div>
                    </div>
                </div>
        </section>

        <section class="why-is">
            <div class="container">
                <div class="row">
                    <div class="why-is__side">
                        <img alt="" src="assets/images/keto-magazines.png" class="keto-magazines">
                        <img alt="" src="assets/brand/product.png" class="wy-btl">
                    </div>
                    <div class="why-is__side">
                        <h2>WHY IS <?php echo $configs->step_1_name; ?> <br><span>SO POPULAR NOW?</span></h2>
                        <p>A recent study published by the Diabetes, Obesity, and Metabolism Journal found
                            that <?php echo $configs->step_1_name; ?> supported burning fat for energy instead of carbohydrates
                            greatly increasing weight loss and energy. Furthermore, TV doctor Oz, recently
                            named <?php echo $configs->step_1_name; ?> the "Holy Grail" of weight loss for good reason - IT
                            WORKS.</p>
                        <p>It is important to note that the <?php echo $configs->step_1_name; ?> with 100% BHB
                            (Beta-Hydroxybutyrate) used in the study was the real deal and <?php echo $configs->step_1_name; ?>                            exceeds the studies product potency using proprietary methods.</p>
                        <p>Bottom Line: It Works and it's Better for your Health!</p>
                    </div>
                </div>
            </div>
        </section>

        <section class="how-use">
            <div class="container">
                <h2 class="how-use__titleMain">
                    <span>HOW TO USE <?php echo $configs->step_1_name; ?></span> <br>
                    TO GET RESULTS
                </h2>
                <div class="row">
                    <div class="how-use__item">
                        <img alt="" src="assets/images/step-1.png">
                        <span class="how-use__step">Step 1</span>
                        <span class="how-use__title">INSTANT FAT BURN</span>
                        <p> Keto Gummies are the holy grail works to release stored fat, by helping your body burn fat for
                            energy instead of carbs. Advanced Ketones are behind this miracle product that helps you
                            lose up to 5 lbs in the first week.</p>
                    </div>
                    <div class="how-use__item">
                        <img alt="" src="assets/images/step-2.png">
                        <span class="how-use__step">Step 2</span>
                        <span class="how-use__title">ACCELERATED FAT BURN</span>
                        <p>During the first month of use, <?php echo $configs->step_1_name; ?> with BHB produces accelerated Fat
                            Burn, which results in expected weight loss of up to 20 lbs. You will notice a drastic
                            change in a very short period of time!</p>


                    </div>
                    <div class="how-use__item">
                        <img alt="" src="assets/images/step-3.png">
                        <span class="how-use__step">Step 3</span>
                        <span class="how-use__title">TRANSFORM YOUR BODY</span>
                        <p>With your weight loss goals achieved, continue to take <?php echo $configs->step_1_name; ?> for 3-5
                            months as to stabilize your appetite, as well as to maintain and transform your new, slim
                            body.</p>

                    </div>
                </div>
                <div class="diagonal-line-container">
                    <svg class="diagonal-line" preserveAspectRatio="none" version="1.1" viewBox="0 0 500 500"
                         xmlns="http://www.w3.org/2000/svg">
                        <polygon fill="#f3f3f3" points="200,500 0,500 300,0 500,0">
                        </polygon>
                    </svg>
                </div>
            </div>
        </section>

        <section class="science green-gradient">
            <div class="container">
                <div class="flip diagonal-line-container">
                    <svg class="diagonal-line" preserveAspectRatio="none" version="1.1" viewBox="0 0 500 500"
                         xmlns="http://www.w3.org/2000/svg">
                        <polygon fill="#f3f3f3" points="200,500 0,500 300,0 500,0">
                        </polygon>
                    </svg>
                </div>
                <div class="row">
                    <div class="science__left">
                        <h2 class="science__title">THE SCIENCE OF</h2>
                        <h2 class="science__subTitle"> KETOSIS<span>(<?php echo $configs->step_1_name; ?>)</span></h2>
                        <p>Ketosis is the state where your body is actually burning fat for energy instead of carbs.
                            Ketosis is extremely hard to obtain on your own and takes weeks to
                            accomplish. <?php echo $configs->step_1_name; ?> actually helps your body achieve ketosis fast and
                            helps you burn fat for energy instead of carbs!</p>
                        <ul>
                            <li><span>No More Stored Fat:</span> Currently with the massive load of cabohydrates in our
                                foods, our bodies are conditioned to burn carbs for energy instead of fat. Because it is
                                an easier energy source for the body to use up.
                            </li>
                            <li><span>Fat - The New Energy:</span> Ketosis is the state where your body is actually
                                burning fat for energy instead of carbs. Ketosis is extremely hard to obtain on your own
                                and takes weeks to accomplish. <?php echo $configs->step_1_name; ?> actually helps your body
                                achieve ketosis fast and helps you burn fat for energy instead of carbs!
                            </li>
                            <li><span>More Health Benefits:</span> <?php echo $configs->step_1_name; ?> BHB works almost instantly
                                to help support ketosis in the body by Burning FAT for energy. Fat IS the body's ideal
                                source of energy and when you are in ketosis you experience energy and mental clarity
                                like never before and of course very rapid weight loss.
                            </li>
                        </ul>


                    </div>
                    <div class="science__right">
                        <div class="science__img">
                            <img alt="" src="assets/images/keto-science.png">
                        </div>
                    </div>
                </div>

            </div>
        </section>

        <section class="review">
            <div class="container">
                <div class="diagonal-line-container">
                    <svg class="diagonal-line" preserveAspectRatio="none" version="1.1" viewBox="0 0 500 500"
                         xmlns="http://www.w3.org/2000/svg">
                        <polygon fill="#f3f3f3" points="200,500 0,500 300,0 500,0">
                        </polygon>
                    </svg>
                </div>
                <h2><span>REAL</span> SUCCESS STORIES</h2>

                <div class="single-item">
                    <div class="slide__item row">
                        <div class="slide__item_left">
                            <img alt="" src="assets/images/testimonial-1.png">
                        </div>
                        <div class="slide__item_right">
                            <div class="table-cell">
                                <p>"After watching video after video of keto success stories, I felt hopeful that I
                                    could actually start losing weight without anything too extreme. When I
                                    found <?php echo $configs->step_1_name; ?> online and thought I'd give it a shot. I started
                                    losing weight, I though maybe it was a fluke at first. After my first 10 pounds, I
                                    cried. If you need something to work like me, you won't be let down"</p>
                                <span>- Ashley R</span>
                            </div>
                        </div>

                    </div>
                    <div class="slide__item row">
                        <div class="slide__item_left">
                            <img alt="" src="assets/images/testimonial-2.png">
                        </div>
                        <div class="slide__item_right">
                            <div class="table-cell">
                                <p>"I've been hearing about <?php echo $configs->step_1_name; ?> for a while now. My sister took
                                    it and had some amazing success. I thought, if I could just lose
                                    a few pounds I would feel better about myself. I was shocked to
                                    say the least when I lost 20lbs in 30 days. Now I tell everyone
                                    :)"</p>
                                <span>- Isabella N</span>
                            </div>
                        </div>

                    </div>
                    <div class="slide__item row">
                        <div class="slide__item_left">
                            <img alt="" src="assets/images/testimonial-3.png">
                        </div>
                        <div class="slide__item_right">
                            <div class="table-cell">
                                <p>"<?php echo $configs->step_1_name; ?> is by far the best product I've used for ketosis. It
                                    works and it works well. I am the leanest I have ever been in my
                                    life. I had my body fat tested before and after and I went from
                                    a whopping 26% body fat down to 16% in 4 months. I owe a big
                                    thanks to <?php echo $configs->step_1_name; ?> for this amazing
                                    experience."</p>
                                <span>- Darin K</span>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </section>

        <section class="last-block">
            <div class="container">
                <div class="diagonal-line-container flip">
                    <svg class="diagonal-line" preserveAspectRatio="none" version="1.1" viewBox="0 0 500 500"
                         xmlns="http://www.w3.org/2000/svg">
                        <polygon fill="#f3f3f3" points="200,500 0,500 300,0 500,0">
                        </polygon>
                    </svg>
                </div>
                <div class="last-block__block row">
                    <div class="last-block_left">
                        <h2>THE MOST
                            POWERFUL <br>
                            <?php echo $configs->step_1_name; ?></h2>
                        <h3>FULL SPECTRUM<br>
                            KETO BHB SALTS</h3>
                        <ul class="row">
                            <li><img alt="" src="assets/images/GUARANTEE.png"></li>
                            <li><img alt="" src="assets/images/INGREDIENTS.png"></li>
                            <li><img alt="" src="assets/images/arrow-1.png"></li>
                        </ul>
                    </div>
                    <div class="last-block_middle">
                        <div class="last-block-bottle">
                            <img alt="" src="assets/brand/product.png">
                        </div>
                        <a class="last-block__btn" href="#form1">
                            <span>RUSH MY ORDER</span>
                        </a>
                        <img alt="" class="logo-f" src="assets/images/logo-f.png">
                    </div>
                    <div class="last-block_right">
                        <img alt="" src="assets/images/wallpapers.png">
                    </div>
                </div>
            </div>
        </section>

        <footer class="footer">
            <div class="container">
                <img alt="" class="website-secure" src="assets/images/website-secure.png">
                <ul class="soc-list row">
                    <li><img alt="" src="assets/images/social-icons.jpg"></li>
                    <li><img alt="" src="assets/images/ca.png"></li>
                </ul>

                <p><?php echo $configs->step_1_name; ?> is committed to maintaining the highest quality products and the utmost
                    integrity in business practices. All products sold on this website are certified by Good
                    Manufacturing Practices (GMP), which is the highest standard of testing in the supplement
                    industry.</p>
                <p>Notice: The products and information found on this site are not intended to replace professional
                    medical advice or treatment. These statements have not been evaluated by the Food and Drug
                    Administration. These products are not intended to diagnose, treat, cure or prevent any disease.
                    Individual results may vary.</p>
                <p>&copy;
                    <script> var date = new Date();
                        document.write(date.getFullYear())</script> <?php echo $configs->step_1_name; ?>. All Rights Reserved.
                </p>

                <ul class="terms-links">
                    <li><a href="javascript:void(0);" onClick="openNewWindow('disclosures/privacy.php','modal');">Privacy Policy
                            |</a></li>
                    <li><a href="javascript:void(0);" onClick="openNewWindow('disclosures/terms.php','modal');">Terms and
                            Conditions |</a></li>
                    <li><a href="javascript:void(0);" onClick="openNewWindow('disclosures/wireless.php','modal');">Wireless Policy</a></li>
                </ul>
            </div>
        </footer>
    </div>
</div>

<section class="custom-social-proof">
    <div class="custom-notification">
        <div class="custom-notification-container">
            <div class="custom-notification-image-wrapper">
                <img src="assets/brand/product.png">
            </div>
            <div class="custom-notification-content-wrapper">
                <p class="custom-notification-content">
                    <span id="notify-customer">Eli H</span>. - <span id="notify-state">TX</span><br> Purchased
                    <strong><span id="notify-quantity">7</span></strong> Bottle(s) of <?php echo $configs->step_1_name; ?> <small><span
                                id="notify-ago">9 minutes ago</span></small>
                </p>
            </div>
        </div>
        <div class="custom-close"></div>
    </div>
</section>

<div class="popup-loading-wrapper" style="display:none;">
    <div class="popup">
        <figure class="product-image"></figure>
        <p>Reserving Your Bottle Of</p>
        <h2><?php echo $configs->step_1_name; ?></h2>
        <img src="assets/images/icon-loading.png" alt="" class="loading-image">
    </div>
</div>

<p id="loading-indicator" style="display:none;">Processing...</p>
<p id="crm-response-container" style="display:none;">Limelight messages will appear here...</p>


<script type="text/javascript" src="assets/js/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="assets/js/slick.min.js"></script>
<script type="text/javascript" src="assets/js/social-proof.js"></script>
<script type="text/javascript" src="assets/js/scripts.js"></script>
<script type="text/javascript" src="assets/js/jquery.mask.min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('.single-item').slick({
            arrows: false,
            dots: true,
            autoplay: true,
            autoplaySpeed: 2600,
        });
    });
</script>
<script type="text/javascript" src="assets/js/jquery.autocomplete.min.js"></script>
<script type="text/javascript" src="assets/js/custom.js"></script>
</body>
</html>