/* Card machines (M106 prototype): the in-person page. Light, like the product renders it shows,
   so the hardware sits on the page's own ground. Every machine carries a status chip, because
   most of the lineup is still in development. */

.cm-hero {
  position: relative;
  overflow: hidden;
  padding: 148px 0 72px;
  background:
    radial-gradient(60% 70% at 78% 40%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #eef1f9 0%, #f4f6fb 100%);
}
.cm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
.cm-hero__text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cm-hero__text .h1 {
  margin-top: 14px;
  max-width: 12ch;
  text-wrap: balance;
}
.cm-hero__text .lead {
  margin-top: 18px;
  max-width: 34rem;
}
.cm-hero__text .row {
  margin-top: 28px;
}
.cm-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--ink-200);
  list-style: none;
}
.cm-hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cm-hero__facts b {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}
.cm-hero__facts b small {
  margin-right: 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-500);
}
.cm-hero__facts span {
  font-size: var(--fs-label);
  color: var(--ink-500);
}
.cm-hero__visual {
  position: relative;
  aspect-ratio: 16 / 11;
}
.cm-hero__glow {
  position: absolute;
  inset: 12% 18%;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(59, 91, 255, 0.18),
    rgba(0, 209, 167, 0.1) 60%,
    transparent
  );
  filter: blur(20px);
}
.cm-hero__roam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 46% 50% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 46% 50% at 50% 50%, #000 58%, transparent 100%);
  animation: cm-hover 7s ease-in-out infinite;
}
@keyframes cm-hover {
  50% {
    transform: translateY(-10px);
  }
}
.cm-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 24px 40px -20px rgba(11, 16, 32, 0.35),
    0 0 0 1px rgba(11, 16, 32, 0.05);
  font-size: 13px;
  line-height: 1.3;
}
.cm-float b {
  display: block;
  color: var(--ink-900);
}
.cm-float small {
  color: var(--ink-500);
}
.cm-float__ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--blue-600);
}
.cm-float__ic--mint {
  background: var(--mint-50);
  color: var(--mint-700);
}
.cm-float--tap {
  left: 4%;
  top: 26%;
  animation: cm-pop 0.7s 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.2) both;
}
.cm-float--paid {
  right: 6%;
  bottom: 18%;
  animation: cm-pop 0.7s 1.3s cubic-bezier(0.2, 0.8, 0.2, 1.2) both;
}
@keyframes cm-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
}

/* The lineup */
.cm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.cm-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(11, 16, 32, 0.05),
    0 0 0 1px var(--ink-100);
  overflow: hidden;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.cm-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 48px -24px rgba(11, 16, 32, 0.25),
    0 0 0 1px var(--ink-100);
}
.cm-card__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #eef1f9, #e6eaf5);
  overflow: hidden;
}
.cm-card__art--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.35);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cm-card:hover .cm-card__art--photo img {
  transform: scale(1.42);
}
.cm-card__art--tap {
  background: var(--gradient-hero);
}
.cm-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
  flex: 1;
}
.cm-card__body p {
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--ink-600);
}
.cm-card__meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--ink-100);
  font-size: var(--fs-caption) !important;
  color: var(--ink-500) !important;
}
.cm-card__meta a {
  color: var(--blue-600);
  font-weight: 600;
}

/* Status chips: the honest part. */
.cm-status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--sunrise-50);
  color: var(--sunrise-700);
  font-style: normal;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.cm-status i,
.cm-status b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.cm-status--live {
  background: var(--mint-50);
  color: var(--mint-800);
}

/* The drawn phones */
.cm-phone {
  width: 38%;
  aspect-ratio: 9 / 18;
  padding: 5px;
  border-radius: 22px;
  background: #1c2236;
  box-shadow: 0 30px 40px -24px rgba(11, 16, 32, 0.6);
  transform: rotate(-6deg) translateY(14%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cm-card:hover .cm-phone {
  transform: rotate(-3deg) translateY(10%);
}
.cm-phone__screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8%;
  padding: 18% 10% 0;
  border-radius: 17px;
  background: #fff;
}
.cm-phone__amount {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.cm-phone__qr {
  width: 70%;
}
.cm-phone__qr .qr {
  display: block;
  width: 100%;
  height: auto;
}
.cm-phone__hint {
  font-size: 9px;
  color: var(--ink-500);
}
.cm-phone--dark .cm-phone__screen {
  background: #0b1020;
  color: #fff;
  padding-top: 26%;
}
.cm-phone--dark .cm-phone__hint {
  color: var(--ink-300);
}
.cm-phone__waves {
  color: var(--mint-300);
  animation: cm-waves 1.8s ease-in-out infinite;
}
@keyframes cm-waves {
  50% {
    opacity: 0.4;
    transform: scale(0.92);
  }
}

/* Our till, or yours */
.cm-ways__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.cm-way {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  border-radius: var(--radius-panel);
  background: #fff;
  box-shadow: 0 0 0 1px var(--ink-100);
}
.cm-way__head {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cm-way__head p {
  margin-top: 2px;
  font-size: var(--fs-label);
  color: var(--ink-500);
}
.cm-way__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mint-50);
  color: var(--mint-700);
}
.cm-way__icon--dark {
  background: var(--ink-900);
  color: #fff;
}
.cm-way__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cm-way__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--ink-100);
  font-size: var(--fs-label);
  color: var(--ink-700);
}
.cm-way .link-arrow {
  margin-top: auto;
}
.cm-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  background: var(--ink-50);
  list-style: none;
  counter-reset: none;
}
.cm-flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.cm-flow li + li::before {
  content: "";
  position: absolute;
  top: 17px;
  right: calc(50% + 46px);
  width: calc(100% - 84px);
  min-width: 10px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ink-200), var(--blue-300));
}
.cm-flow__node {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--ink-200);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.cm-flow__node--brand {
  background: var(--blue-500);
  box-shadow: none;
  color: #fff;
}
.cm-flow__node--mint {
  background: var(--mint-50);
  box-shadow: inset 0 0 0 1px var(--mint-300);
  color: var(--mint-800);
}
.cm-flow__note {
  margin-top: -12px;
  font-size: var(--fs-caption);
  color: var(--ink-400);
}
.cm-flow small {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-500);
}

/* Price */
.cm-price__band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  background: var(--gradient-hero);
  color: var(--text-inverse);
}
.cm-price__band .eyebrow {
  color: var(--mint-300);
}
.cm-price__band .h2 {
  color: #fff;
}
.cm-price__band .lead {
  margin-top: 14px;
  color: var(--ink-200);
}
.cm-price__list {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.cm-price__list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.cm-price__list > div:first-child {
  border-top: 0;
}
.cm-price__list dt {
  color: var(--ink-200);
}
.cm-price__list dd {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .cm-hero__roam,
  .cm-float,
  .cm-phone__waves {
    animation: none;
  }
}
@media (max-width: 1080px) {
  .cm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .cm-hero {
    padding: 120px 0 48px;
  }
  .cm-hero__grid,
  .cm-ways__grid,
  .cm-price__band {
    grid-template-columns: minmax(0, 1fr);
  }
  .cm-price__band {
    padding: 32px 24px;
    gap: 24px;
  }
  .cm-way {
    padding: 24px;
  }
}
@media (max-width: 560px) {
  .cm-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cm-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }
  .cm-flow li + li::before {
    display: none;
  }
}
