/* Members page. Scoped to .mv1. The previous page is at /obsoletemembers.
   With no script the phone shows the benefits screen. */

/* ---------- Steps: each one drives the phone ---------- */
.mv1 .mv1-steps li {
  position: relative;
  padding-inline: var(--s-3);
  border-radius: var(--radius);
  transition: background var(--normal) var(--ease), box-shadow var(--normal) var(--ease);
}
.mv1 .mv1-steps li::before { transition: color var(--normal) var(--ease), transform var(--normal) var(--ease); }
.mv1 .mv1-steps.is-live li { cursor: pointer; }
.mv1 .mv1-steps.is-live li:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.mv1 .mv1-steps li:focus-visible { outline: var(--focus); outline-offset: 2px; }
.mv1 .mv1-steps li.is-on {
  background: var(--surface);
  border-block-start-color: transparent;
  box-shadow: var(--shadow-float);
}
.mv1 .mv1-steps li.is-on + li { border-block-start-color: transparent; }
.mv1 .mv1-steps li.is-on::before { transform: scale(1.15); }
.mv1 .mv1-steps li::after {
  content: "";
  position: absolute;
  inset-inline: var(--s-3);
  inset-block-end: 0.35rem;
  block-size: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.mv1 .mv1-steps.is-armed li.is-on::after { opacity: 1; animation: mv1-timer var(--mv1-step-ms, 5000ms) linear forwards; }

/* ---------- The 3D stage ---------- */
.mv1 .mv1-figure { perspective: 1400px; }
.mv1 .mv1-scene {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--s-6) var(--s-4);
  isolation: isolate;
}
.mv1 .mv1-scene::before {
  content: "";
  position: absolute;
  inset: 10% 6% 4%;
  z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  filter: blur(8px);
}
.mv1 .mv1-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  inline-size: min(17.5rem, 100%);
  aspect-ratio: 9 / 18;
  padding: 2.3rem 0.95rem 0.95rem;
  overflow: hidden;
  font-size: var(--text-sm);
  line-height: 1.35;
  background: var(--surface);
  border: 0.6rem solid #16130f;
  border-radius: 2.6rem;
  box-shadow:
    0 0 0 2px #3a342c,
    0 44px 70px -30px rgb(28 25 23 / 0.55),
    0 14px 28px -14px rgb(28 25 23 / 0.35);
  transform: rotateY(var(--mv1-ry, -14deg)) rotateX(var(--mv1-rx, 6deg));
  transition: transform 0.6s var(--ease);
}
.mv1 .mv1-phone::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset-block-start: 0.55rem;
  inset-inline-start: 50%;
  inline-size: 4.5rem;
  block-size: 1.15rem;
  translate: -50% 0;
  background: #16130f;
  border-radius: var(--radius-full);
}
.mv1 .mv1-phone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(118deg, rgb(255 255 255 / 0.28), transparent 32%);
  pointer-events: none;
}
.mv1 .mv1-phone__bar { flex: none; padding-block-end: var(--s-2); margin-block-end: var(--s-3); }
.mv1 .mv1-screens { position: relative; flex: 1; min-block-size: 0; }
.mv1 .mv1-screen {
  display: none;
  flex-direction: column;
  gap: var(--s-3);
}
.mv1 .mv1-screen.is-on { display: flex; }
.mv1 .mv1-screens.is-live .mv1-screen {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: translateX(1.5rem) scale(0.98);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.mv1 .mv1-screens.is-live .mv1-screen.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s;
}
.mv1 .mv1-screens.is-live .mv1-screen.is-left { transform: translateX(-1.5rem) scale(0.98); }
.mv1 .mv1-dots { display: flex; justify-content: center; gap: 0.35rem; margin-block-start: auto; padding-block-start: var(--s-3); }
.mv1 .mv1-dots i { inline-size: 0.4rem; block-size: 0.4rem; background: var(--line); border-radius: var(--radius-full); transition: inline-size var(--normal) var(--ease), background var(--normal) var(--ease); }
.mv1 .mv1-dots i.is-on { inline-size: 1.2rem; background: var(--accent); }

/* Floating benefit chips around the phone */
.mv1 .mv1-orb {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  inline-size: 3.1rem;
  block-size: 3.1rem;
  color: var(--on-accent);
  background: var(--accent);
  border: 3px solid var(--surface);
  border-radius: 1rem;
  box-shadow: 0 16px 30px -12px rgb(28 25 23 / 0.5);
  transform: translate3d(var(--mv1-ox, 0px), var(--mv1-oy, 0px), var(--mv1-oz, 60px)) rotate(var(--mv1-rot, 0deg));
  transition: transform 0.5s var(--ease);
}
.mv1 .mv1-orb .icon { inline-size: 1.35rem; block-size: 1.35rem; }
.mv1 .mv1-orb--points { inset-block-start: 14%; inset-inline-start: 2%; --mv1-rot: -8deg; --mv1-oz: 90px; }
.mv1 .mv1-orb--coupon { inset-block-start: 42%; inset-inline-end: 0; --mv1-rot: 10deg; background: #b4233c; --mv1-oz: 120px; }
.mv1 .mv1-orb--voucher { inset-block-end: 14%; inset-inline-start: 6%; --mv1-rot: 6deg; background: #a16207; --mv1-oz: 70px; }
.mv1 .mv1-figure.is-shown .mv1-orb { animation: mv1-bob 4.2s ease-in-out infinite; }
.mv1 .mv1-figure.is-shown .mv1-orb--coupon { animation-delay: 0.8s; }
.mv1 .mv1-figure.is-shown .mv1-orb--voucher { animation-delay: 1.6s; }
.mv1 .mv1-figure[data-step="2"] .mv1-orb { scale: 1.12; }

/* Shared pieces inside screens */
.mv1 .mv1-skel { display: block; flex: 1; block-size: 0.55rem; max-inline-size: 7rem; background: var(--surface-2); border-radius: var(--radius-full); }
.mv1 .mv1-skel--short { max-inline-size: 4rem; }
.mv1 .mv1-skel--grow { max-inline-size: none; }
.mv1 .mv1-avatar { display: grid; place-items: center; flex: none; inline-size: 2rem; block-size: 2rem; color: var(--on-accent); background: var(--accent); border-radius: var(--radius-full); }
.mv1 .mv1-avatar .icon { inline-size: 1rem; block-size: 1rem; }
.mv1 .mv1-avatar--muted { color: var(--ink-3); background: var(--surface-2); }
.mv1 .mv1-avatar--b { background: #a16207; }
.mv1 .mv1-avatar--c { background: #b4233c; }

/* Screen 1: find a store, or scan its QR */
.mv1 .mv1-search { display: flex; align-items: center; gap: var(--s-2); padding: 0.55rem 0.75rem; color: var(--ink-3); background: var(--surface-2); border-radius: var(--radius-full); }
.mv1 .mv1-search .mv1-skel { background: var(--line); }
.mv1 .mv1-scan { position: relative; display: grid; place-items: center; padding: var(--s-4); background: #16130f; border-radius: var(--radius); overflow: hidden; }
.mv1 .mv1-qr { display: grid; grid-template-columns: repeat(7, 0.85rem); gap: 0.18rem; padding: 0.6rem; background: #fff; border-radius: var(--radius-sm); }
.mv1 .mv1-qr span { aspect-ratio: 1; background: #fff; border-radius: 1px; }
.mv1 .mv1-qr span:nth-child(-n + 3), .mv1 .mv1-qr span:nth-child(n + 5):nth-child(-n + 7),
.mv1 .mv1-qr span:nth-child(8), .mv1 .mv1-qr span:nth-child(10), .mv1 .mv1-qr span:nth-child(12), .mv1 .mv1-qr span:nth-child(14),
.mv1 .mv1-qr span:nth-child(15), .mv1 .mv1-qr span:nth-child(16), .mv1 .mv1-qr span:nth-child(17), .mv1 .mv1-qr span:nth-child(19), .mv1 .mv1-qr span:nth-child(20), .mv1 .mv1-qr span:nth-child(21),
.mv1 .mv1-qr span:nth-child(24), .mv1 .mv1-qr span:nth-child(25), .mv1 .mv1-qr span:nth-child(27),
.mv1 .mv1-qr span:nth-child(29), .mv1 .mv1-qr span:nth-child(30), .mv1 .mv1-qr span:nth-child(31), .mv1 .mv1-qr span:nth-child(33), .mv1 .mv1-qr span:nth-child(35),
.mv1 .mv1-qr span:nth-child(36), .mv1 .mv1-qr span:nth-child(38), .mv1 .mv1-qr span:nth-child(40), .mv1 .mv1-qr span:nth-child(41),
.mv1 .mv1-qr span:nth-child(n + 43):nth-child(-n + 45), .mv1 .mv1-qr span:nth-child(47), .mv1 .mv1-qr span:nth-child(49) { background: #16130f; }
.mv1 .mv1-scan__line { position: absolute; inset-inline: 22%; inset-block-start: 22%; block-size: 2px; background: #4ade80; box-shadow: 0 0 12px 3px rgb(74 222 128 / 0.7); opacity: 0; }
.mv1 .mv1-scan__frame {
  position: absolute;
  inset: 12% 20%;
  border: 2px solid rgb(255 255 255 / 0.8);
  border-radius: var(--radius-sm);
  -webkit-mask: linear-gradient(#000 0 0) top left / 22% 22% no-repeat, linear-gradient(#000 0 0) top right / 22% 22% no-repeat, linear-gradient(#000 0 0) bottom left / 22% 22% no-repeat, linear-gradient(#000 0 0) bottom right / 22% 22% no-repeat;
  mask: linear-gradient(#000 0 0) top left / 22% 22% no-repeat, linear-gradient(#000 0 0) top right / 22% 22% no-repeat, linear-gradient(#000 0 0) bottom left / 22% 22% no-repeat, linear-gradient(#000 0 0) bottom right / 22% 22% no-repeat;
}
.mv1 .mv1-shoplist, .mv1 .mv1-wallets { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.mv1 .mv1-shoplist li, .mv1 .mv1-wallets li {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}
.mv1 .mv1-shoplist li.is-hit { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.mv1 .mv1-shoplist__pin { margin-inline-start: auto; color: var(--accent); }
.mv1 .is-on.mv1-screen--find .mv1-scan__line { animation: mv1-scanline 2.2s ease-in-out infinite; }
.mv1 .is-on.mv1-screen--find .mv1-shoplist li { animation: mv1-in 0.5s var(--ease) both; }
.mv1 .is-on.mv1-screen--find .mv1-shoplist li:nth-child(2) { animation-delay: 0.12s; }
.mv1 .is-on.mv1-screen--find .mv1-shoplist li:nth-child(3) { animation-delay: 0.24s; }

/* Screen 2: browse collections */
.mv1 .mv1-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.mv1 .mv1-grid span { display: grid; gap: 0.35rem; min-inline-size: 0; }
.mv1 .mv1-grid img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-2); border-radius: var(--radius-sm); }
.mv1 .is-on.mv1-screen--browse .mv1-grid span { animation: mv1-rise 0.55s var(--ease) both; }
.mv1 .is-on.mv1-screen--browse .mv1-grid span:nth-child(2) { animation-delay: 0.1s; }
.mv1 .is-on.mv1-screen--browse .mv1-grid span:nth-child(3) { animation-delay: 0.2s; }
.mv1 .is-on.mv1-screen--browse .mv1-grid span:nth-child(4) { animation-delay: 0.3s; }
.mv1 .is-on.mv1-screen--browse .mv1-grid span:first-child img { animation: mv1-focus 4s var(--ease) 0.8s infinite; }

/* Screen 3: this store's benefits */
.mv1 .mv1-instruments li { border-radius: var(--radius-sm); }
.mv1 .mv1-instruments .icon { transition: transform var(--normal) var(--ease); }
.mv1 .is-on.mv1-screen--benefits .mv1-instruments li { animation: mv1-in 0.5s var(--ease) both; }
.mv1 .is-on.mv1-screen--benefits .mv1-instruments li:nth-child(2) { animation-delay: 0.15s; }
.mv1 .is-on.mv1-screen--benefits .mv1-instruments li:nth-child(3) { animation-delay: 0.3s; }
.mv1 .is-on.mv1-screen--benefits .mv1-instruments li .icon { animation: mv1-pop 0.6s var(--ease) both; animation-delay: inherit; }

/* Screen 4: come back to your shops */
.mv1 .mv1-wallets__icons { display: flex; gap: 0.2rem; margin-inline-start: auto; color: var(--accent); }
.mv1 .mv1-new { position: absolute; inset-block-start: -0.25rem; inset-inline-end: -0.25rem; inline-size: 0.7rem; block-size: 0.7rem; background: #b4233c; border: 2px solid var(--surface); border-radius: var(--radius-full); }
.mv1 .mv1-bell { display: grid; place-items: center; align-self: center; inline-size: 3rem; block-size: 3rem; margin-block-start: var(--s-3); color: var(--accent); background: var(--surface-2); border-radius: var(--radius-full); }
.mv1 .is-on.mv1-screen--return .mv1-wallets li { animation: mv1-stack 0.6s var(--ease) both; }
.mv1 .is-on.mv1-screen--return .mv1-wallets li:nth-child(2) { animation-delay: 0.12s; }
.mv1 .is-on.mv1-screen--return .mv1-wallets li:nth-child(3) { animation-delay: 0.24s; }
.mv1 .is-on.mv1-screen--return .mv1-new { animation: mv1-ping 1.8s ease-out 0.6s infinite; }
.mv1 .is-on.mv1-screen--return .mv1-bell .icon { animation: mv1-ring 2.4s ease-in-out 0.8s infinite; transform-origin: 50% 10%; }

/* ---------- CTA sheen ---------- */
.mv1 .mv1-shine { position: relative; overflow: hidden; isolation: isolate; }
.mv1 .mv1-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
.mv1 .mv1-shine:hover::after, .mv1 .mv1-shine:focus-visible::after { animation: mv1-sheen 0.9s var(--ease); }
.mv1 .mv1-hero.is-shown .mv1-shine::after { animation: mv1-sheen 1.2s var(--ease) 1.2s; }

/* ---------- FAQ: answers open smoothly where the browser can animate it ---------- */
.mv1 .mv1-faq details { transition: background var(--normal) var(--ease); border-radius: var(--radius-sm); }
.mv1 .mv1-faq details[open] { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.mv1 .mv1-faq summary { padding-inline: var(--s-2); }
.mv1 .mv1-faq details p { padding-inline: var(--s-2); }
.mv1 .mv1-faq summary:hover { color: var(--accent); }
@supports (interpolate-size: allow-keywords) {
  .mv1 .mv1-faq { interpolate-size: allow-keywords; }
  .mv1 .mv1-faq details::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size 0.35s var(--ease), opacity 0.35s var(--ease), content-visibility 0.35s allow-discrete;
  }
  .mv1 .mv1-faq details[open]::details-content { block-size: auto; opacity: 1; }
}

/* ---------- Layout ---------- */
@media (max-width: 59.99rem) {
  .mv1 .mv1-phone { --mv1-ry: -8deg; --mv1-rx: 4deg; }
  .mv1 .mv1-orb { inline-size: 2.6rem; block-size: 2.6rem; }
}

/* ---------- Reduced motion: still, finished, flat ---------- */
@media (prefers-reduced-motion: reduce) {
  .mv1 *, .mv1 *::before, .mv1 *::after { animation: none !important; transition: none !important; }
  .mv1 .mv1-phone, .mv1 .mv1-orb { transform: none !important; }
  .mv1 .mv1-screens.is-live .mv1-screen { transform: none !important; }
}

/* ---------- Keyframes ---------- */
@keyframes mv1-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mv1-in { from { opacity: 0; translate: 0 0.6rem; } to { opacity: 1; translate: 0 0; } }
@keyframes mv1-rise { from { opacity: 0; transform: translateY(1rem) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes mv1-stack { from { opacity: 0; transform: translateY(-0.8rem) rotateX(30deg); } to { opacity: 1; transform: none; } }
@keyframes mv1-pop { 0% { transform: scale(0.4); } 60% { transform: scale(1.25); } 100% { transform: none; } }
@keyframes mv1-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -0.6rem; } }
@keyframes mv1-scanline { 0%, 100% { inset-block-start: 22%; opacity: 1; } 50% { inset-block-start: 76%; opacity: 1; } }
@keyframes mv1-focus { 0%, 60%, 100% { transform: none; box-shadow: none; } 20%, 45% { transform: scale(1.06); box-shadow: 0 10px 20px -8px rgb(28 25 23 / 0.45); } }
@keyframes mv1-ping { 0% { box-shadow: 0 0 0 0 rgb(180 35 60 / 0.55); } 100% { box-shadow: 0 0 0 0.6rem rgb(180 35 60 / 0); } }
@keyframes mv1-ring { 0%, 50%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 40% { transform: rotate(-4deg); } }
@keyframes mv1-sheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
