/* Ridge V3 selling layer (try-ridge-v3.html only). Pairs with js/try-ridge-v3.js. */

/* ---- buy button with price inside ---- */
.product-checkout.v3-btn { gap: 8px; font-size: 18px; letter-spacing: .03em; flex-wrap: nowrap; white-space: nowrap; }
.v3-btn__sep { opacity: .55; font-weight: 400; }
.v3-btn__price { font-weight: 900; }
.v3-btn__was { font-size: .78em; font-weight: 600; opacity: .7; text-decoration-thickness: 2px; }
@media (max-width: 420px) {
  .product-checkout.v3-btn { font-size: 16px; letter-spacing: .01em; gap: 6px; padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 350px) {
  .product-checkout.v3-btn { font-size: 14.5px; }
}

/* ---- gift-unlock ladder (images + struck values + lock) ---- */
.v3-gifts {
  position: relative; margin: 26px 0 4px; padding: 22px 8px 12px;
  border-radius: 14px; border: 1.5px solid rgba(255,255,255,.22); background: rgba(255,255,255,.03);
}
.v3-gifts__tab {
  position: absolute; top: 0; left: 14px; transform: translateY(-55%);
  padding: 5px 12px; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.22);
  background: #0b1424; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.v3-gifts__row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; }
.v3-gifts__plus {
  align-self: center; margin-top: -34px; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35); color: #cbd5e1;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1;
}
.v3-gift { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; min-width: 0; padding: 0 2px; }
.v3-gift__art {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 74px; height: 74px; margin-bottom: 4px; border-radius: 12px; overflow: hidden; background: #0b1220;
}
.v3-gift__art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v3-gift__art-svg { width: 92%; height: auto; }
.v3-gift__art--grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #111827; }
.v3-gift__art--grid img { transition: filter .25s ease, opacity .25s ease; }
.v3-gift__val { color: #94a3b8; font-size: 12.5px; font-weight: 600; text-decoration-thickness: 1.5px; }
.v3-gift__name { color: #4ade80; font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.v3-gift__note { color: #f0a33a; font-size: 11px; font-weight: 700; line-height: 1.2; }
.v3-gift__lock {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: #f0a33a; background: rgba(2,9,19,.45); font-size: 11.5px; transition: opacity .25s ease;
}
.v3-gift__lock b { font-weight: 800; color: #fbbf24; }
/* locked state */
.v3-gift--bonus:not(.is-on) { cursor: pointer; }
.v3-gift--bonus:not(.is-on) .v3-gift__art--grid img { filter: blur(2.5px) grayscale(.5); opacity: .55; }
.v3-gift--bonus:not(.is-on) .v3-gift__name,
.v3-gift--bonus:not(.is-on) .v3-gift__val { filter: blur(.4px); color: #64748b; }
.v3-gift--bonus.is-on .v3-gift__lock { opacity: 0; pointer-events: none; }
.v3-gift--bonus.is-on .v3-gift__note { color: #86efac; }
.v3-gift--bonus.is-on .v3-gift__art { box-shadow: 0 0 0 2px #22a447; }
.v3-gift--bonus:focus-visible { outline: 2px solid #3b82f6; outline-offset: 3px; border-radius: 10px; }
@media (max-width: 380px) {
  .v3-gift__art { width: 64px; height: 64px; }
  .v3-gift__name, .v3-gift__val { font-size: 11.5px; }
}

/* ---- delivery promise above the button ---- */
.v3-delivery {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 10px 0 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.05);
  color: #dbe4f0; font-size: 14px; line-height: 1.3; text-align: center;
}
.v3-delivery svg { flex: 0 0 auto; color: #4ade80; }
.v3-delivery strong { color: #fff; }

/* ---- payment row under the button ---- */
.v3-pay { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 10px 0 2px; flex-wrap: wrap; }
.v3-pay img { width: 40px; height: 27px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }

/* ---- quick FAQ accordions under the button ---- */
.v3-faq { margin: 12px 0 4px; border-radius: 10px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.v3-faq details + details { border-top: 1px solid rgba(255,255,255,.08); }
.v3-faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3;
}
.v3-faq summary::-webkit-details-marker { display: none; }
.v3-faq summary::after { content: "+"; flex: 0 0 auto; color: #60a5fa; font-size: 20px; font-weight: 500; line-height: 1; transition: transform .2s ease; }
.v3-faq details[open] summary::after { transform: rotate(45deg); }
.v3-faq details p { margin: 0; padding: 0 14px 14px; color: #cbd5e1; font-size: 14px; line-height: 1.5; }

/* ---- How It Works video ---- */
.v3-video { margin: 16px 0 6px; }
.v3-video__title { margin: 0 0 8px; color: #fff; font-size: 18px; font-weight: 800; }
.v3-video__frame {
  position: relative; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: #030914; aspect-ratio: 1 / 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.v3-video__frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.v3-video__sound {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px; border: 0;
  background: rgba(2,9,19,.78); color: #fff; font: 700 12.5px/1 var(--font, Inter, sans-serif);
  pointer-events: none;
}
.v3-video__sound .is-on-icon { display: none; }
.v3-video__frame.is-sound .v3-video__sound .is-on-icon { display: inline; }
.v3-video__frame.is-sound .v3-video__sound .is-off-icon,
.v3-video__frame.is-sound .v3-video__sound .v3-video__hint { display: none; }

/* ---- sale countdown in the top bar ---- */
.v3-countdown {
  display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 5px;
  background: rgba(0,0,0,.28); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .02em;
}
.v3-countdown[hidden] { display: none; }
.v3-reviews-more { display: block; margin: 18px auto 0; }
/* still image that replaced the duplicate lower video */
.why-size__media img.why-size__still { aspect-ratio: 1 / 1; object-fit: cover; height: auto; background: #071321; }

/* ---- red sale bar (V3 only) ---- */
.promo-bar.v3-promo { background: linear-gradient(90deg, #b80f1f 0%, #d9182b 55%, #e8273a 100%); color: #fff; }
.v3-promo .v3-ends { color: #ffe14d; font-weight: 900; }
.v3-promo .v3-countdown { background: rgba(0,0,0,.35); color: #ffe14d; }
.v3-promo a { color: #fff; }

/* gift box: tiles wrap 3 per row (3-Pack shows 5 gifts), last row centered */
.v3-gifts__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 4px; }
.v3-gifts__row .v3-gift { flex: 0 0 31.5%; }
.v3-gifts__row .v3-gift[hidden] { display: none; }
.v3-gifts__plus { display: none; }

/* ---- bigger sale bar: title line + "Ends Oct 31 · countdown · SHOP NOW" line ---- */
.promo-bar.v3-promo { min-height: 0; padding: 8px 0 9px; }
.v3-promo .v3-promo__inner { min-height: 0; flex-direction: column; gap: 3px; text-align: center; }
.v3-promo__title { font-size: 16px; font-weight: 900; letter-spacing: .04em; line-height: 1.15; }
.v3-promo__sub { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; }
.v3-promo__sub .v3-countdown { margin-left: 0; font-size: 13px; }
.v3-promo__sub a { margin-left: 2px; }

/* ---- "As seen in" moving strip under the logo ---- */
.v3-asi {
  display: flex; align-items: center; gap: 10px; overflow: hidden;
  padding: 9px 0 9px 14px; background: #0a1322; border-bottom: 1px solid rgba(255,255,255,.08);
}
.v3-asi__label { flex: 0 0 auto; color: #94a3b8; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; }
.v3-asi__viewport {
  flex: 1 1 auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.v3-asi__belt { display: flex; width: max-content; animation: v3-asi-scroll 26s linear infinite; }
.v3-asi__track { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.v3-asi__item { display: inline-flex; align-items: center; height: 26px; white-space: nowrap; }
.v3-asi__item img { height: 22px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.v3-asi__text { color: #e2e8f0; font-size: 13px; font-weight: 700; }
@keyframes v3-asi-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .v3-asi__belt { animation: none; } }

/* ---- how-to demo in How It Works ---- */
.v3-howto { margin: 28px auto 6px; max-width: 1250px; }
.v3-howto__frame { aspect-ratio: 16 / 9; border-radius: 12px; }
.v3-howto__frame.is-square { aspect-ratio: 1 / 1; }
.v3-howto__frame video { object-fit: cover; }

/* reviewer photo in the Andrew P. card */
.checkout-review__avatar--photo { padding: 0; overflow: hidden; }
.checkout-review__avatar--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ---- "Nothing to do with your size": couple photo + 84% stat overlay, tighter copy ---- */
.v3-why-media { position: relative; border-radius: 12px; overflow: hidden; }
.v3-why-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.v3-why-stat {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(4, 12, 28, .82); box-shadow: inset 0 0 0 1px rgba(96,165,250,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.v3-why-stat strong { flex: 0 0 auto; color: #fff; font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.v3-why-stat span { color: #dbeafe; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.v3-why-punch { color: #fff !important; font-size: 22px !important; font-weight: 900; line-height: 1.2 !important; }
.v3-why-source { color: #94a3b8 !important; font-size: 13px !important; font-style: italic; }
@media (min-width: 901px) { .v3-why-stat strong { font-size: 52px; } .v3-why-stat span { font-size: 17px; } }

/* ---- How It Works: compact 2x2 on phones ---- */
@media (max-width: 620px) {
  .how-it-works { padding: 30px 16px 34px; }
  .how-it-works__head { margin-bottom: 16px; }
  .how-it-works__head h2 { margin-bottom: 6px; }
  .how-it-works__head p { font-size: 14.5px; }
  .how-it-works__grid { gap: 14px 12px; }
  .how-item__media { margin-bottom: 8px; border-radius: 8px; }
  .how-item__title { margin-bottom: 3px; font-size: 14.5px; }
  .how-item__desc { font-size: 13.5px; line-height: 1.38; }
  .how-it-works .section-cta { margin-top: 20px; }
}
