/* stylelint-disable selector-id-pattern */
/* stylelint-disable selector-class-pattern */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --card: #ffffff;
  --card2: #eef3fb;
  --border: #dbe4f0;
  --pink: #2f6bff;
  --teal: #1e40af;
  --white: #0f1b33;
  --grey: #55627a;
  --grey2: #8593ab;
  --pink-rgb: 47 107 255;
  --teal-rgb: 30 64 175;
}

@keyframes appFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 4px 28px rgb(var(--pink-rgb) / 35%);
  }

  50% {
    box-shadow: 0 4px 38px rgb(var(--pink-rgb) / 60%);
  }
}

@keyframes shimmerBg {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

html {
  scroll-behavior: smooth;
  background: #f6f8fc;
}

body {
  font-family: Montserrat, sans-serif;
  background: linear-gradient(160deg, #f6f8fc 0%, #eef3fb 50%, #f6f8fc 100%);
  background-repeat: no-repeat;
  color: var(--white);
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
}

.screen {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1.25rem 3rem;
}

.screen.active {
  display: flex;
  animation: appFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.BB {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* BUTTONS */
.btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 50px;
  font-family: Montserrat, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.btn:active {
  transform: scale(0.97);
}

.btn-pink {
  background: linear-gradient(95deg, #1e3a8a, #2f6bff, #3b82f6, #60a5fa);
  background-size: 200% 100%;
  color: #fff !important;
  box-shadow: 0 4px 28px rgb(var(--pink-rgb) / 40%);
  animation: softPulse 2.8s ease-in-out infinite, shimmerBg 6s ease infinite;
}

@media (hover: hover) {
  .btn-pink:hover {
    opacity: 0.92;
    transform: translateY(-1px);
  }
}

.btn-teal {
  background: var(--teal);
  color: #0d0d0d !important;
  font-weight: 800;
}

.btn-dark {
  background: var(--card2);
  color: var(--grey) !important;
  border: 1px solid var(--border);
}

/* INPUT */
input[type="text"] {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.2rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  color: var(--white);
  font-size: 1rem;
  font-family: Montserrat, sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: var(--pink);
}

input[type="text"]::placeholder {
  color: var(--grey2);
}

.inp-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}

.at {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey);
  font-size: 0.95rem;
  pointer-events: none;
  font-weight: 600;
}

/* CARDS */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}

.card-pink {
  border-color: rgb(var(--pink-rgb) / 30%);
  box-shadow: 0 0 20px rgb(var(--pink-rgb) / 6%);
}

/* SCAN */
.sstatus {
  background: rgb(var(--teal-rgb) / 8%);
  border: 1px solid rgb(var(--teal-rgb) / 20%);
  border-radius: 50px;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.85rem;
  transition: all 0.4s;
}

.sstatus.found {
  background: var(--teal);
  color: #0d0d0d;
  font-weight: 800;
}

.srow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.83rem;
}

.srow:last-child {
  border-bottom: none;
}

.srow .sl {
  color: var(--grey);
}

.srow .sv {
  color: var(--white);
  font-weight: 600;
}

.srow.done .sl {
  color: var(--teal);
}

.sspin {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.sck {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgb(var(--teal-rgb) / 15%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--teal);
  font-weight: 800;
}

/* AVATAR RING */
.avring {
  position: relative;
  border-radius: 50%;
  flex-shrink: 0;
}

.avborder {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--pink), #3b82f6, #5b9dff, var(--pink));
  animation: spin 3s linear infinite;
}

.avinner {
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avinner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avinit {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  color: var(--pink);
}

/* POPUP */
.pop-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 85%);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.pop-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.pop-box {
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 2rem 1.5rem 2.5rem;
  width: 100%;
  max-width: 430px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.pop-overlay.show .pop-box {
  transform: translateY(0);
}

/* PROGRESS */
.prog {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-bottom: 1rem;
}

.pseg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
}

.pseg.a,
.pseg.d {
  background: var(--teal);
}

/* STATS */
.sbox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.9rem;
}

.snum {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--pink);
  display: block;
  margin-bottom: 0.2rem;
}

/* VISITOR ROWS */
.vrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.vrow:last-child {
  border-bottom: none;
}

.vav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pink);
  background: var(--card2);
}

.vav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BLURRED CARD ROWS (S7, S8, S9) */
.blur-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.blur-card:last-child {
  margin-bottom: 0;
}

.bav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--card2);
  position: relative;
}

.bav-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #333, #444);
  filter: blur(6px);
}

.btxt {
  flex: 1;
  min-width: 0;
}

.bnm {
  height: 9px;
  border-radius: 4px;
  background: var(--card2);
  width: 130px;
  filter: blur(5px);
  margin-bottom: 5px;
}

.bsb {
  height: 7px;
  border-radius: 4px;
  background: var(--card2);
  width: 90px;
  filter: blur(4px);
}

/* TESTIMONIAL */
.testi {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.testi:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.thd {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.tav {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(var(--pink-rgb) / 10%);
  border: 1px solid rgb(var(--pink-rgb) / 20%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--pink);
  flex-shrink: 0;
  overflow: hidden;
}

.tav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stars {
  font-size: 0.72rem;
  color: #fbbf24;
  letter-spacing: 1px;
}

.testi p {
  font-size: 0.82rem;
  color: rgb(15 27 51 / 78%);
  line-height: 1.65;
}

/* OFFER FEATURES GRID */
.feat-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.feat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}

.feat-box-icon {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.feat-box-title {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.feat-box-desc {
  font-size: 0.75rem;
  color: var(--grey);
  line-height: 1.4;
}

/* CHECKLIST */
.ci {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.7rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.ck {
  color: var(--pink);
  flex-shrink: 0;
  font-weight: 800;
  margin-top: 1px;
  font-size: 1rem;
}

/* NOTIF */
.notif {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 500;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
    opacity 0.35s;
  opacity: 0;
  width: calc(100% - 2.5rem);
  max-width: 400px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 60%);
}

.notif.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  background: var(--card2);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.ndot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  animation: blink 0.9s infinite;
}

/* SPINNER */
.spin-d {
  position: relative;
  width: 72px;
  height: 72px;
}

.spin-d .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.spin-d .r1 {
  border-top-color: var(--teal);
  animation: spin 1s linear infinite;
}

.spin-d .r2 {
  inset: 8px;
  border-top-color: var(--pink);
  animation: spin 0.7s linear infinite reverse;
}

.spin-d .r3 {
  inset: 16px;
  border-top-color: rgb(255 255 255 / 7%);
  animation: spin 1.3s linear infinite;
}

/* MINI AVATARS (S4) */

/* carousel */
#deepAvs {
  overflow: hidden;
  width: 100%;
  margin: 0.6rem 0;
}

#carTrack {
  display: flex;
  flex-flow: row nowrap;
  gap: 10px;
  align-items: center;
  width: max-content;
}

#carTrack.running {
  animation: car-scroll 10s linear infinite;
}

@keyframes car-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.cav {
  display: block;
  width: 66px;
  height: 66px;
  min-width: 66px;
  min-height: 66px;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid #ffffff26;
  background: #eef3fb;
  flex-shrink: 0;
  position: relative;
}

/* SCAN PROGRESS DOTS */
.scan-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin: 0.5rem 0;
}

.sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.sdot.on {
  background: var(--pink);
}

/* HSTEP */
.hstep {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.hstep:last-child {
  border-bottom: none;
}

.hnum {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

/* OFFER PRICE BOX */
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.75rem;
}

/* ANIMATIONS */
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.15;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgb(var(--pink-rgb) / 20%);
  }

  50% {
    box-shadow: 0 0 40px rgb(var(--pink-rgb) / 60%);
  }
}

@keyframes scan-line {
  0% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

.fi {
  animation: fade-up 0.4s ease both;
}

/* ===== APP-STYLE SUBTLE ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  .screen.active .vrow,
  .screen.active .feat-box,
  .screen.active .sbox {
    animation: appFadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .screen.active .vrow:nth-child(1),
  .screen.active .sbox:nth-child(1),
  .screen.active .feat-box:nth-child(1) { animation-delay: 0.04s; }

  .screen.active .vrow:nth-child(2),
  .screen.active .sbox:nth-child(2),
  .screen.active .feat-box:nth-child(2) { animation-delay: 0.1s; }

  .screen.active .vrow:nth-child(3),
  .screen.active .sbox:nth-child(3),
  .screen.active .feat-box:nth-child(3) { animation-delay: 0.16s; }

  .screen.active .vrow:nth-child(4),
  .screen.active .sbox:nth-child(4),
  .screen.active .feat-box:nth-child(4) { animation-delay: 0.22s; }

  .screen.active .vrow:nth-child(5) { animation-delay: 0.28s; }
  .screen.active .vrow:nth-child(6) { animation-delay: 0.34s; }
}

.feat-box,
.sbox,
.card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s;
}

.feat-box:active,
.sbox:active {
  transform: scale(0.98);
}

.btn-teal:active,
.btn-dark:active {
  transform: scale(0.97);
}

/* ===== LIGHT SCREENS: s4 (scanning) + s10 (offer) ===== */
#s4,
#s10 {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 60%, #eef3fb 100%);
  --bg: #ffffff;
  --surface: #ffffff;
  --card: #ffffff;
  --card2: #f4f1f9;
  --border: #ece7f3;
  --white: #0f1b33;
  --grey: #55627a;
  --grey2: #8593ab;
  color: #0f1b33;
}

/* headings/plain text inside light screens that inherit body white */
#s4 h1, #s4 h2, #s4 h3, #s4 h4, #s4 p, #s4 span, #s4 div, #s4 li, #s4 strong, #s4 b,
#s10 h1, #s10 h2, #s10 h3, #s10 h4, #s10 p, #s10 span, #s10 div, #s10 li, #s10 strong, #s10 b {
  color: #0f1b33;
}

/* but preserve explicit inline-colored elements (pink/grey/teal accents) */
#s4 [style*="color: var(--pink)"], #s10 [style*="color: var(--pink)"] { color: var(--pink) !important; }
#s4 [style*="color: var(--grey)"], #s10 [style*="color: var(--grey)"] { color: var(--grey) !important; }
#s4 [style*="color: var(--teal)"], #s10 [style*="color: var(--teal)"] { color: var(--teal) !important; }
#s4 [style*="color:#"], #s10 [style*="color:#"],
#s4 [style*="color: #"], #s10 [style*="color: #"] { color: revert; }

/* keep pink accents readable on white */
#s4 .card,
#s10 .card,
#s4 .feat-box,
#s10 .feat-box,
#s4 .sbox,
#s10 .sbox {
  box-shadow: 0 4px 20px rgb(120 80 200 / 8%);
}

/* offer price highlight stays gradient-instagram tinted */
#s10 .card-pink {
  border-color: rgb(var(--pink-rgb) / 25%);
  background: rgb(var(--pink-rgb) / 4%);
}

/* s10 CTA buttons GREEN (like reference) */
#s10 .btn-pink {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  background-size: auto !important;
  color: #fff !important;
  box-shadow: 0 4px 28px rgb(16 185 129 / 35%) !important;
  animation: none !important;
}

@media (hover: hover) {
  #s10 .btn-pink:hover {
    opacity: 0.92;
    transform: translateY(-1px);
  }
}

/* second CTA RED (print 2) */
#s10 .btn-red-cta {
  background: #e8453c !important;
  box-shadow: 0 4px 28px rgb(232 69 60 / 32%) !important;
}

/* Discount downsell entrance animations */
@keyframes discFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes discRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Clean theme: white text on solid-blue surfaces ──────────────── */
/* In the light theme --teal is a deep blue used as a solid fill, so
   the near-black label baked into these components disappears. Force
   white for legibility. */
.sstatus.found {
  color: #ffffff !important;
}
.btn-teal {
  color: #ffffff !important;
}
