/* ==========================================================================
   MEMTAG — enhancement layer: offers, reviews, sticky CTA, motion polish.
   Loaded after style.css. Written to work on iOS Safari and Android Chrome.
   ========================================================================== */

html { -webkit-text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: rgba(224, 175, 123, 0.25); }
h1, h2, h3 { text-wrap: balance; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 300;
  background: linear-gradient(90deg, #c78d53, #e0af7b, #f1cfa6);
  transform: scaleX(0); transform-origin: right center;
  pointer-events: none;
}

/* ---------- Hero additions ---------- */
.hero-proof {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 14px; color: #55524d; margin-bottom: 14px;
}
.hero-proof b { color: #1f1e1d; }
.stars { color: #e0a14a; letter-spacing: 2px; font-size: 15px; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: #b9b3aa; display: inline-block; }
.hero .price-box { margin-bottom: 20px; gap: 14px; }
.hero .price-main .amount { font-size: clamp(44px, 5.5vw, 58px); }
.hero .price-main .currency { font-size: 20px; }
.old-amount { font-size: 18px; text-decoration: line-through; }
.platform-note {
  margin-top: 14px; font-size: 14px; font-weight: 700; color: #4b4845;
  background: #fff; border: 1px solid #ece6dc; border-radius: 10px;
  padding: 8px 14px; display: inline-block;
}

/* ---------- Button polish: sheen sweep + soft pulse ---------- */
.btn-primary, .btn-cta-pill, .btn-header { overflow: hidden; }
.btn-primary::after, .btn-cta-pill::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%;
  right: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: sheen 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen { 0%, 55% { right: -60%; } 100% { right: 130%; } }
.btn-pulse { animation: ctaPulse 2.6s ease-in-out infinite; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 10px 24px rgba(224,175,123,0.30), 0 0 0 0 rgba(224,175,123,0.45); }
  50% { box-shadow: 0 10px 24px rgba(224,175,123,0.30), 0 0 0 12px rgba(224,175,123,0); }
}
.btn { -webkit-user-select: none; user-select: none; will-change: transform; }
.btn:active { transform: scale(0.97); }

/* Hero highlight shimmer */
.hero-highlight-pill {
  background-image: linear-gradient(110deg, #e0af7b 30%, #f3d2ad 48%, #e0af7b 66%);
  background-size: 220% 100%;
  animation: gentleFloat 4s ease-in-out infinite alternate, shimmer 5s linear infinite;
}
@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

/* Feature icons breathe */
.card-icon-wrap { animation: iconBreath 5s ease-in-out infinite; }
.feature-card:nth-child(2) .card-icon-wrap { animation-delay: .6s; }
.feature-card:nth-child(3) .card-icon-wrap { animation-delay: 1.2s; }
.feature-card:nth-child(4) .card-icon-wrap { animation-delay: 1.8s; }
@keyframes iconBreath { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- Offers ---------- */
.offers-section { background: #fff; padding: 84px 0 70px; }
.offers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch;
}
.offer-card {
  position: relative; background: #fbfaf8; border: 1.5px solid #ece6dc;
  border-radius: 24px; padding: 34px 26px 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease-spring), box-shadow .4s ease, border-color .4s ease;
}
.offer-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--card-border-hover); }
.offer-featured {
  background: linear-gradient(180deg, #fff 0%, #fdf4ea 100%);
  border-color: var(--peach-primary); border-width: 2px;
  box-shadow: 0 20px 50px rgba(199, 141, 83, 0.22);
}
.offer-ribbon {
  position: absolute; top: -15px; right: 50%; transform: translateX(50%);
  background: #1f1e1d; color: #f5dfcb; font-weight: 800; font-size: 13px;
  padding: 6px 18px; border-radius: 999px; white-space: nowrap;
}
.offer-card h3 { font-size: 22px; font-weight: 900; color: #222223; margin-bottom: 2px; }
.offer-for { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.offer-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 2px; }
.offer-amount { font-size: 58px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: #1a1a1b; }
.offer-cur { font-size: 18px; font-weight: 800; color: #3b3936; }
.offer-old { font-size: 14px; color: #716c66; margin-bottom: 16px; min-height: 26px; }
.save-tag {
  display: inline-block; margin-inline-start: 6px; background: #fdf0e3; color: #80501f;
  font-weight: 800; font-size: 12px; padding: 3px 10px; border-radius: 999px;
}
.offer-list { list-style: none; width: 100%; margin-bottom: 22px; text-align: right; }
.offer-list li {
  position: relative; padding: 7px 28px 7px 0; font-size: 14.5px; color: #4b4845;
  border-bottom: 1px dashed #ece6dc;
}
.offer-list li:last-child { border-bottom: none; }
.offer-list li::before {
  content: "✓"; position: absolute; right: 0; top: 7px; width: 20px; height: 20px;
  border-radius: 50%; background: #f5dfcb; color: #80501f; font-size: 12px; font-weight: 900;
  display: grid; place-items: center;
}
.offer-btn { width: 100%; margin-top: auto; padding: 14px 22px; }
.offers-note { text-align: center; margin-top: 26px; font-size: 13.5px; color: var(--text-muted); }

/* ---------- Reviews ---------- */
.reviews-section { background: #f3f2ef; padding: 90px 0 80px; }
.rating-summary {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: -16px auto 34px;
}
.rating-big { font-size: 64px; font-weight: 900; line-height: 1; color: #1a1a1b; letter-spacing: -0.04em; }
.rating-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #55524d; }
.reviews-viewport { position: relative; }
.reviews-track {
  display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 8px max(16px, calc((100% - 1200px) / 2)) 24px;
  scroll-padding-inline: max(16px, calc((100% - 1200px) / 2));
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 min(340px, 82%); scroll-snap-align: start;
  background: #fff; border: 1px solid #ece6dc; border-radius: 22px;
  padding: 26px 24px 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  transition: transform .35s var(--ease-spring), box-shadow .35s ease;
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.review-card::before { content: "★★★★★"; color: #e0a14a; letter-spacing: 3px; font-size: 14px; }
.review-card blockquote { font-size: 15.5px; line-height: 1.85; color: #34312e; font-weight: 500; }
.review-card figcaption { font-size: 14px; font-weight: 800; color: #1f1e1d; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-card figcaption small {
  font-size: 11.5px; font-weight: 700; color: #1d6b43; background: #e6f4ec;
  padding: 2px 9px; border-radius: 999px;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; right: 0; left: 0; bottom: 0; z-index: 200;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid #ece6dc; box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
  transform: translateY(110%); transition: transform .4s var(--ease-smooth);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-info { display: flex; flex-direction: column; line-height: 1.3; }
.sticky-info small { font-size: 12px; color: var(--text-muted); }
.sticky-info b { font-size: 18px; font-weight: 900; color: #1a1a1b; }
.sticky-info s { font-size: 13px; font-weight: 500; color: #716c66; margin-inline-start: 4px; }
.sticky-cta .btn { padding: 12px 26px; flex-shrink: 0; }

/* ---------- Step connectors: arrows light up in sequence ---------- */
.step-arrow { animation: pulseArrow 2s infinite ease-in-out; }

/* ---------- Reveal polish ---------- */
.reveal-ready [data-reveal="up"] { transform: translateY(30px) scale(0.985); }
.reveal-ready [data-reveal].is-revealed { transform: none; }

/* ---------- Footer a11y ---------- */
.footer-links a { min-height: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .offers-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 26px; }
  .offer-featured { order: -1; }
}
@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
  /* Phones: product image first, then the copy, with comfortable spacing */
  .hero { padding: 18px 0 48px; }
  .hero-grid { gap: 8px; }
  .hero-art-wrapper { order: -1; }
  .hero-copy { order: 0; }
  .hero-mockup-img { max-height: 340px; width: auto; max-width: 100%; margin-inline: auto; object-fit: contain; }
  .hero-product-name { display: none; }
  .eyebrow { font-size: 22px; margin-bottom: 8px; }
  .hero-title { font-size: clamp(54px, 17vw, 72px); line-height: 1.05; margin-bottom: 22px; }
  .hero-highlight-wrap { margin-bottom: 26px; }
  .hero-highlight-pill { font-size: 21px; padding: 8px 22px; }
  .hero-lead { font-size: 15px; line-height: 1.9; margin-bottom: 24px; }
  .hero-proof { justify-content: center; font-size: 13.5px; margin-bottom: 22px; gap: 12px; }
  .hero .price-main .amount { font-size: 48px; }
  .hero .price-box { margin-bottom: 24px; gap: 16px; }
  .hero .btn { padding: 14px 24px; }
  .hero-actions { gap: 14px; }
  .platform-note { margin-top: 22px; font-size: 13.5px; padding: 9px 14px; }
  .hero-stage { margin-bottom: 8px; }
  .platform-note { display: block; text-align: center; }
  .hero .price-box { justify-content: center; }
  .offers-section { padding: 64px 0 56px; }
  .reviews-section { padding: 64px 0 56px; }
  .rating-big { font-size: 52px; }
}
@media (max-width: 380px) {
  .offer-amount { font-size: 50px; }
  .sticky-info b { font-size: 16px; }
  .sticky-cta .btn { padding: 11px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
  .btn-pulse, .btn-primary::after, .btn-cta-pill::after { animation: none !important; }
  .scroll-progress { display: none; }
}
