/* ==========================================================================
   clone.css — everything the original loaded from a third party, rebuilt.
   Load order: framework.css → page.css → clone.css
   Sections:  1. tokens  2. VSL player  3. sticky mini-player
              4. reveal + modal  5. checkout form  6. responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Brand tokens — change these first when rebranding
   -------------------------------------------------------------------------- */
:root {
  --brand-red:        #C71F1F;  /* underlines, warning bar */
  --brand-red-deep:   #930A0E;  /* "watch video" bar, dividers, boxes */
  --brand-red-bright: #C90000;  /* author headline */
  --brand-ink:        #101010;  /* header */
  --brand-ink-soft:   #141414;  /* footer */
  --brand-paper:      #F8F8F8;
  --brand-go:         #00B33A;  /* CTA green */
  --brand-go-lime-a:  #B3EA56;  /* CTA outer gradient */
  --brand-go-lime-b:  #9BCF3E;
  --brand-warning:    #FFE000;  /* warning triangle */

  --font-headline: "Roboto Serif", serif;
  --font-sub:      "Work Sans", sans-serif;
  --font-body:     "Inter", sans-serif;
  --font-button:   "Open Sans", sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Underlines are red across the whole page (matches source). */
u { text-decoration-color: var(--brand-red); }

/* --------------------------------------------------------------------------
   2. VSL player — replaces the hosted embed, same 16:9 box and play button
   -------------------------------------------------------------------------- */
.vslPlayer {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}
.vslPlayer video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Big centred play button — 175px wide, white, 50% black plate behind. */
.vslPlayBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* 175px at full size, but never more than ~40% of a narrow player. */
  width: min(175px, 40%);
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 3;
}
.vslPlayBtn svg { width: 100%; height: auto; display: block; }
.vslPlayBtn:hover { transform: translate(-50%, -50%) scale(1.04); }
.vslPlayer.is-playing .vslPlayBtn { opacity: 0; pointer-events: none; }

/* Control bar — hidden until the video starts, fades on idle. */
.vslControls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 4;
}
.vslPlayer.is-playing .vslControls,
.vslPlayer.is-paused  .vslControls { opacity: 1; transform: none; }
.vslPlayer.is-idle    .vslControls { opacity: 0; transform: translateY(6px); }

.vslCtlBtn {
  border: 0;
  background: none;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  opacity: .9;
}
.vslCtlBtn:hover { opacity: 1; }

.vslProgress {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  position: relative;
}
.vslProgressFill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 2px;
  background: var(--brand-red);
}
.vslTime {
  color: #fff;
  font: 500 12px/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: right;
}

/* --------------------------------------------------------------------------
   3. Sticky mini-player — matches the source's 250×140 top-left dock
   -------------------------------------------------------------------------- */
.elVideoWrapper.is-sticky .elVideo { position: static; }
.elVideoWrapper.is-sticky .vslPlayer {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 250px;
  height: 140px;
  aspect-ratio: auto;
  z-index: 999;
  border: 10px solid rgba(0,0,0,.1);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.elVideoWrapper.is-sticky .vslPlayBtn { width: 70px; }
.elVideoWrapper.is-sticky .vslPlayBtn:hover { transform: translate(-50%, -50%) scale(1.04); }
.elVideoWrapper.is-sticky .vslControls { padding: 6px 8px; gap: 8px; }
.elVideoWrapper.is-sticky .vslTime,
.elVideoWrapper.is-sticky #vslFull { display: none; }

/* Placeholder that holds the layout height while the player is docked. */
.vslSpacer { width: 100%; aspect-ratio: 16 / 9; }

.video-sticky-close-button-css {
  position: fixed;
  display: none;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  top: 14px; left: 10px;
  z-index: 1000;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 13px;
}
.elVideoWrapper.is-sticky .video-sticky-close-button-css { display: flex; }

@media (max-width: 770px) {
  .elVideoWrapper.is-sticky .vslPlayer { width: 180px; height: 101px; border-width: 6px; }
  .elVideoWrapper.is-sticky .vslPlayBtn { width: 52px; }
}

/* --------------------------------------------------------------------------
   4. Transcript reveal + order modal
   -------------------------------------------------------------------------- */
#transcript[hidden] { display: none !important; }
#transcript {
  animation: revealIn .35s ease both;
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* Backdrop.
   The framework ships [data-page-element="Modal/V1"]{display:none} and toggles
   it from JS; here the `hidden` attribute is the single source of truth. */
.elModal { display: none; }
.elModal:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow: hidden auto;
}
.elModalInnerContainer { position: relative; z-index: 100001; width: 720px; max-width: 100%; }
body.modal-open { overflow: hidden; }

/* Desktop: full-height 620px drawer pinned to the right, slides in. */
#modalPopup.containerModal {
  z-index: 9999;
  background: #fff;
}
@media (min-width: 769px) {
  #modalPopup.containerModal {
    position: fixed;
    top: 0; bottom: 0; right: 0; left: auto;
    height: 100vh;
    max-height: none;
    width: min(620px, 100vw);
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
  }
  .elModal.is-open #modalPopup.containerModal { transform: none; }
  #modalPopup.containerModal > .containerInnerV2 {
    height: 100%;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
  }
  #modalPopup.containerModal .row:first-child { margin-top: 0; }
  #modalPopup.containerModal .row:last-child  { margin-bottom: 0; }
  .elModalClose { position: absolute; top: 0; left: 0; right: 0; }
  .elModalClose .closeLPModal {
    position: fixed;
    top: 16px;
    right: calc(min(620px, 100vw) + 16px);
    width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #031A01;
    color: #fff;
    cursor: pointer;
    z-index: 100002;
  }
}

/* Mobile: bottom sheet. */
@media (max-width: 768px) {
  #modalPopup.containerModal {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.22,.61,.36,1);
  }
  .elModal.is-open #modalPopup.containerModal { transform: none; }
  #modalPopup.containerModal > .containerInnerV2 {
    max-height: 92vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .elModalClose .closeLPModal {
    position: fixed;
    right: 14px;
    bottom: calc(92vh + 10px);
    width: 35px; height: 35px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #031A01;
    color: #fff;
    z-index: 100002;
    cursor: pointer;
  }
}

/* --------------------------------------------------------------------------
   5. Checkout form
   -------------------------------------------------------------------------- */
.ckForm { font-family: var(--font-body); color: #303030; }

.ckSectionTitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 10px;
  font: 700 11px/1 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-red-deep);
}
.ckSectionTitle::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(147,10,14,.35);
}

.ckGrid { display: grid; gap: 0; }
.ckGrid2 { grid-template-columns: 1fr 1fr; }
.ckGrid2 > .ckField:first-child { border-right: 0; }

/* Stacked bordered rows, ClickFunnels-style: fields share edges.
   The label sits after its control in the DOM so `input + .ckLabel` can react
   to :focus / :placeholder-shown; it is absolutely positioned, so visual order
   is unaffected. Inputs carry placeholder=" " to keep :placeholder-shown
   meaningful while showing nothing. */
.ckField {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #E3E3E3;
  background: #fff;
  /* The framework reset applies `margin: 0 auto` to every element including
     <label>; auto side margins would shrink-wrap grid children, so pin them. */
  margin: -1px 0 0;
  min-height: 52px;
}
.ckField:first-of-type { margin-top: 0; }
.ckField:focus-within { border-color: var(--brand-red-deep); z-index: 2; }

.ckField input,
.ckField select {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 18px 12px 6px;
  font: 400 14px/1.2 var(--font-body);
  color: #384751;
}

.ckLabel {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font: 400 14px/1 var(--font-body);
  color: #8A949B;
  pointer-events: none;
  transition: top .15s ease, font-size .15s ease, transform .15s ease;
}
/* Floated state: focused, filled, or a select (which always has a value). */
.ckField input:focus ~ .ckLabel,
.ckField input:not(:placeholder-shown) ~ .ckLabel,
.ckLabelFloat {
  top: 9px;
  transform: none;
  font-size: 10px;
  letter-spacing: .02em;
  color: #98A2A9;
}

/* Rows with a leading adornment (flag, card icon) shift their label across. */
.ckFieldPhone .ckFlag,
.ckFieldCard > i {
  flex: 0 0 auto;
  padding-left: 12px;
  font-size: 15px;
  color: #6B767E;
}
.ckFieldPhone input,
.ckFieldCard input { padding-left: 8px; }
.ckFieldPhone .ckLabel { left: 44px; }
.ckFieldCard  .ckLabel { left: 40px; }

.ckSelect select {
  appearance: none;
  -webkit-appearance: none;
  padding: 22px 34px 6px 12px;
  cursor: pointer;
}
.ckSelect::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #6B767E;
  border-bottom: 2px solid #6B767E;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.ckDelivery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border: 1px solid #E3E3E3;
  border-radius: 5px;
  text-align: center;
  font: 400 13px/1.5 var(--font-body);
  color: #6B767E;
}
.ckDelivery i { font-size: 18px; color: #303030; }

.ckCheckRow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  font: 400 14px/1.3 var(--font-body);
  color: #303030;
  cursor: pointer;
}
.ckCheckRow input { width: 16px; height: 16px; accent-color: var(--brand-red-deep); }

/* Order bump */
.ckBump {
  position: relative;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #E8DFA6;
  border-radius: 5px;
  background: #FFFDF0;
}
.ckBumpDot {
  position: absolute;
  left: 8px; top: 20px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-go);
  box-shadow: 0 0 0 3px rgba(0,179,58,.25);
  animation: bumpPulse 1.6s ease-in-out infinite;
}
@keyframes bumpPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(0,179,58,.25); }
  50%     { box-shadow: 0 0 0 6px rgba(0,179,58,.08); }
}
.ckBumpHead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 8px;
  cursor: pointer;
}
.ckBumpHead input { width: 15px; height: 15px; margin-top: 2px; accent-color: var(--brand-red-deep); }
.ckBumpTitle { font: 700 13px/1.35 var(--font-body); color: var(--brand-red-deep); }
.ckBumpPrice { font: 700 13px/1.35 var(--font-body); color: #303030; }
.ckBumpBody  { margin: 10px 0 0; font: 400 13px/1.5 var(--font-body); color: #303030; }
.ckBumpImg   { display: block; margin: 12px auto 0; max-width: 65%; }

/* Summary */
.ckSummary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 12px;
  border: 1px solid #E3E3E3;
  border-radius: 5px;
  background: #fff;
  font: 400 13px/1 var(--font-body);
  color: #303030;
  cursor: pointer;
}
.ckSummaryLeft  { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ckSummaryRight { display: flex; align-items: center; gap: 8px; color: #8A949B; }
.ckChevron { transition: transform .2s ease; }
.ckSummary[aria-expanded="true"] .ckChevron { transform: rotate(180deg); }
.ckSummaryBody {
  border: 1px solid #E3E3E3;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  padding: 4px 12px 12px;
  font: 400 13px/1.6 var(--font-body);
}
.ckSummaryLine { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.ckSummaryTotal { border-top: 1px solid #EEE; margin-top: 4px; font-weight: 700; }

/* Submit */
.ckSubmit {
  width: 100%;
  margin: 18px auto 0;
  padding: 20px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(#23C645 1%, #16752A 100%);
  cursor: pointer;
  transition: filter .2s ease, transform .1s ease;
}
.ckSubmit:hover  { filter: brightness(1.06); }
.ckSubmit:active { transform: translateY(1px); }
.ckSubmitText { font: 700 16px/1.15 var(--font-body); color: #fff; }
.ckDisclaimer {
  margin: 10px 0 0;
  text-align: center;
  font: 400 12px/1.4 var(--font-body);
  color: #8A949B;
}

/* --------------------------------------------------------------------------
   6. Responsive touch-ups
   -------------------------------------------------------------------------- */
@media (max-width: 770px) {
  /* Long fields stack; short paired fields (MM/YY + CVV) stay side by side. */
  .ckGrid2:not(.ckGridKeep) { grid-template-columns: 1fr; }
  .ckGrid2:not(.ckGridKeep) > .ckField:first-child { border-right: 1px solid #E3E3E3; }
  .ckSubmitText { font-size: 15px; }
}
