/* Hourglass Program v1 — loads AFTER /assets/css/j3.css AND /xframe/page.css.
   Only styles that are new to the Hourglass page; everything else comes from
   the shared files (tokens, header, footer, hero-x, section, darkbox, split,
   dlist, gtee, lightbox, greybox, gbox, offer-receipt, orp-row, etc.). */

/* ---- HERO sub-copy ---- */
.hero-sub {
  font-size: clamp(1rem, 0.85rem + 0.5vw, 1.18rem);
  color: #34373d;
  max-width: 760px;
  margin: 0 auto 28px;
  line-height: 1.6;
  text-align: center;
}

/* ---- BAND 2: numbered list inside darkbox ---- */
.dlist.dlist-num { gap: 20px; }
.dlist.dlist-num li { align-items: flex-start; gap: 16px; }
.num-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  margin-top: 1px;
}

/* ---- Emillie column (right side inside darkbox.split) ---- */
.emillie-col { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.emillie-col img { width: 100%; border-radius: 16px; }
.emillie-quote {
  margin: 0;
  padding: 18px 20px;
  background: rgba(255,255,255,.07);
  border-left: 3px solid var(--red-bright);
  border-radius: 0 12px 12px 0;
}
.emillie-quote p {
  margin: 0 0 10px;
  color: #e0e2e6;
  font-size: .97rem;
  line-height: 1.55;
  font-style: italic;
}
.emillie-quote cite {
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* mistakes list: bold titles must be white on the dark box (X-Frame only whitens `p strong`) */
.darkbox .dlist strong,
.darkbox .dlist-num strong { color: #fff; }

/* ---- BAND 3: competitor marquee ---- */
.comp-section { overflow: hidden; }
.comp-section .sec-head { margin-bottom: clamp(28px, 3vw, 44px); }

.marquee-outer {
  overflow: hidden;
  width: 100%;
  max-width: var(--maxw);   /* contained to the content column, not full viewport width */
  margin: 0 auto;
}

.marquee-track {
  display: flex;
  width: max-content;
  /* 2x faster; seamless because each card owns its trailing margin so the two
     duplicated halves are identical and translateX(-50%) lands exactly on a loop */
  animation: marquee-scroll 15s linear infinite;
}

.marquee-outer:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-card {
  flex-shrink: 0;
  width: clamp(192px, 21.5vw, 352px);  /* 20% smaller than before */
  margin-right: 16px;                  /* trailing margin on every card = seamless loop */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0b0b0d;
}

.marquee-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* ---- BAND 4: How It Works + 3 Splits side-by-side ---- */
.how-splits-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

/* Left: How It Works */
.how-col h2 { font-size: clamp(1.5rem, 1rem + 1.5vw, 2rem); margin-bottom: 0; }
.how-col .uline { margin: 14px 0 24px; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fcard-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.fcard-body h4 {
  font-size: .98rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.fcard-body p {
  font-size: .9rem;
  color: #34373d;
  line-height: 1.5;
  margin: 0;
}

/* Right: 3 Splits — ONE dark box with small red icons (matches the live page) */
.splits-col {
  background: var(--box-dark, #141417);
  border-radius: 22px;
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--shadow-dark);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}
.splits-head {
  font-size: clamp(1.2rem, 0.9rem + 1vw, 1.6rem);
  font-family: var(--font-head);
  color: #fff;
  margin: 0;
}
.splits-col .uline { margin: 14px 0 6px; }

.splits-list { display: flex; flex-direction: column; width: 100%; }

/* each split: small red icon, white title, grey copy — stacked, divided */
.split-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.split-item:last-child { border-bottom: 0; padding-bottom: 0; }

.split-item-img img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.split-item-copy h4 {
  font-size: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.split-item-copy p {
  font-size: .9rem;
  color: #c2c6cc;
  line-height: 1.5;
  margin: 0;
}

/* ---- BAND 6: Checkout grid ---- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

/* Offer card */
.offer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.offer-card-head {
  background: var(--box-dark);
  color: #fff;
  padding: clamp(20px, 2.5vw, 32px) clamp(20px, 2.5vw, 32px) 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-card-head h3 {
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}

.offer-price-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}

.offer-price-tag .cur {
  color: var(--red-bright);
  font-size: .55em;
  vertical-align: super;
}

.offer-bump-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: clamp(14px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
  background: #fbf3f1;
}

.bump-thumb img {
  width: 58px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.bump-text { flex: 1; }

.bump-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 4px;
}

.bump-text p {
  font-size: .88rem;
  color: #34373d;
  margin: 0 0 4px;
  line-height: 1.4;
}

.bump-price-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0;
}

.order-summary {
  padding: clamp(14px, 2vw, 22px);
  border-bottom: 1px solid var(--line);
}

.summary-head {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .88rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 10px;
}

.order-summary .orp-row { color: #34373d; }
.order-summary .orp-row.tv { font-weight: 600; color: var(--ink); }

.total-amt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
}
.total-amt .cur { color: var(--red); font-size: .55em; vertical-align: super; }

.offer-card .cta-full {
  display: flex;
  width: calc(100% - clamp(28px,4vw,44px)*2);
  justify-content: center;
  margin: 18px clamp(14px, 2vw, 22px) 0;
}

.card-gtee {
  display: flex;
  justify-content: center;
  padding: 14px clamp(14px, 2vw, 22px) clamp(18px, 2vw, 26px);
}

/* Right column */
.checkout-right { display: flex; flex-direction: column; gap: 18px; }

.checkout-include .dlist li { color: #34373d; }
.checkout-include .dlist li strong { color: var(--ink); }

/* Trust grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
}

.trust-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 48px;
}

/* ---- BAND 6: centered offer card (Option B) ---- */
.offer-center { max-width: 600px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(28px,4vw,46px); text-align: center; }
.offer-center .ob-eyebrow { color: var(--red); }
.offer-center .price-was-wrap { margin-top: 18px; }
.offer-center .price-was { font-family: var(--font-head); color: var(--muted); text-decoration: line-through; font-size: 1.05rem; }
.offer-center .price-now { font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; color: var(--ink); line-height: 1; margin: 2px 0 4px; }
.offer-center .price-now .cur { color: var(--red); font-size: .5em; vertical-align: super; }
.offer-center .price-sub { font-size: .9rem; color: var(--muted); }
.offer-center .dlist { max-width: 430px; margin: 24px auto; text-align: left; gap: 12px; }
.offer-center .dlist li { font-size: .98rem; }
.offer-center .btn { width: 100%; justify-content: center; margin-top: 6px; }
.offer-center .gtee { margin: 14px auto 0; }
.offer-center .trust-row { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px 26px; align-items: center; justify-content: center; }
.trust-row .ti { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 500; font-size: .8rem; color: var(--muted); }
.trust-row .ti svg { width: 18px; height: 18px; color: var(--red); }
.trust-row img.cards { height: 26px; width: auto; }
.trust-row img.nasm { height: 30px; width: auto; }
.trust-row img.stars { height: 22px; width: auto; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .how-splits-grid {
    grid-template-columns: 1fr;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .marquee-card {
    width: clamp(200px, 70vw, 280px);
  }
  .offer-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
