/* =========================================================================
   CardMap — Public Website (Landing & Legal Shell)
   Modern Elevated CardMap aesthetic: layered surfaces, crisp bento tiles,
   4-colour brand accents, subtle dot textures, light/dark + glass support.
   ========================================================================= */

.cm-lp-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: color-mix(in srgb, var(--cm-surface) 88%, transparent);
  border-bottom: 1px solid var(--cm-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cm-lp-nav::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--cm-blue) 0% 25%,
    var(--cm-green) 25% 50%,
    var(--cm-yellow) 50% 75%,
    var(--cm-purple) 75% 100%
  );
}

.cm-lp-container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.cm-lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.cm-lp-brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--bs-body-color);
  flex-shrink: 0;
}

.cm-lp-brand--sm {
  font-size: 1.02rem;
}

.cm-lp-links {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.cm-lp-link {
  color: var(--cm-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: .42rem .78rem;
  border-radius: 10px;
  transition: color .15s ease, background-color .15s ease;
}

.cm-lp-link:hover {
  color: var(--cm-blue);
  background: var(--cm-blue-bg);
}

.cm-lp-link.active {
  color: var(--cm-blue);
  background: var(--cm-blue-bg);
}

/* ---- Hero ---- */
.cm-lp-hero {
  padding-block: 4.5rem 3rem;
}

.cm-lp-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .95rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--cm-surface);
  color: var(--cm-blue);
  border: 1px solid var(--cm-border);
  box-shadow: 0 4px 14px rgba(30, 60, 140, .06);
  margin-bottom: 1.2rem;
}

.cm-lp-title {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.09;
  letter-spacing: -.035em;
  margin-bottom: 1.15rem;
}

.cm-lp-subtitle {
  font-size: 1.07rem;
  line-height: 1.68;
  color: var(--cm-text-muted);
  max-width: 540px;
  margin-bottom: 1.85rem;
}

.cm-lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
}

.cm-lp-cta-btn {
  padding: .75rem 1.35rem;
  font-size: .95rem;
  border-radius: 12px;
}

.cm-lp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.2rem;
  margin-top: 1.5rem;
  color: var(--cm-text-muted);
  font-size: .84rem;
  font-weight: 500;
}

.cm-lp-trust span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

/* ---- Hero preview mock ---- */
.cm-lp-preview {
  padding: 1.35rem;
  position: relative;
  border-radius: 24px;
}

.cm-lp-mock-card {
  position: relative;
  overflow: hidden;
  background: var(--cm-blue);
  color: #fff;
  border-radius: 18px;
  padding: 1.45rem 1.5rem;
  box-shadow: 0 16px 34px rgba(30, 60, 140, .26);
}

.cm-lp-mock-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .15) 1.3px, transparent 1.3px);
  background-size: 16px 16px;
  pointer-events: none;
}

.cm-lp-mock-card > :not(.cm-lp-mock-dots) {
  position: relative;
  z-index: 1;
}

.cm-lp-mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.cm-lp-mock-avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.12rem;
  flex-shrink: 0;
}

.cm-lp-mock-qr {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #fff;
  color: #161c26;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

.cm-lp-mock-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-top: .95rem;
}

.cm-lp-mini-tile {
  background: var(--cm-hover);
  border: 1px solid var(--cm-border);
  border-radius: 14px;
  padding: .75rem .9rem;
  transition: transform .18s ease, border-color .18s ease;
}

.cm-lp-mini-tile:hover {
  transform: translateY(-2px);
  border-color: var(--cm-blue);
}

.cm-lp-mini-label {
  font-size: .7rem;
  color: var(--cm-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cm-lp-mini-val {
  font-size: .92rem;
  font-weight: 700;
  margin-top: .2rem;
}

/* ---- Highlight metrics strip ---- */
.cm-lp-strip {
  padding-block: 1rem 2rem;
}

.cm-lp-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.cm-lp-strip-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1.05rem;
  border-radius: 16px;
  background: var(--cm-surface);
  border: 1px solid var(--cm-border);
}

.cm-lp-strip-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---- Sections & Bento Cards ---- */
.cm-lp-section {
  padding-block: 3.5rem;
}

.cm-lp-section-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 2.5rem;
}

.cm-lp-section-title {
  font-size: clamp(1.55rem, 2.9vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-top: .35rem;
  margin-bottom: .6rem;
}

.cm-lp-bento-card {
  border-radius: 20px;
  padding: 1.4rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cm-lp-bento-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--cm-blue) 45%, var(--cm-border));
  box-shadow: 0 12px 28px rgba(30, 60, 140, .09);
}

.cm-lp-feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.cm-lp-feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.cm-lp-feat-tag {
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: var(--cm-hover);
  color: var(--cm-text-muted);
  border: 1px solid var(--cm-border);
}

.cm-lp-feat-icon--blue   { background: var(--cm-blue-bg);   color: var(--cm-blue); }
.cm-lp-feat-icon--green  { background: var(--cm-green-bg);  color: var(--cm-green); }
.cm-lp-feat-icon--yellow { background: var(--cm-yellow-bg); color: var(--cm-yellow); }
.cm-lp-feat-icon--purple { background: var(--cm-purple-bg); color: var(--cm-purple); }

/* ---- Digital & NFC Showcase ---- */
.cm-lp-spotlight {
  border-radius: 24px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.cm-lp-check-list {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
  display: grid;
  gap: .65rem;
}

.cm-lp-check-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .93rem;
}

.cm-lp-check-list i {
  margin-top: .22rem;
}

/* ---- Workflow ---- */
.cm-lp-step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--cm-blue);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .95rem;
}

.cm-lp-step-num--green  { background: var(--cm-green); }
.cm-lp-step-num--purple { background: var(--cm-purple); }

/* ---- Bottom CTA ---- */
.cm-lp-cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--cm-blue);
  color: #fff;
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 18px 40px rgba(25, 60, 140, .22);
}

.cm-lp-cta-banner > :not(.cm-lp-mock-dots) {
  position: relative;
  z-index: 1;
}

.cm-lp-cta-banner p {
  opacity: .92;
  max-width: 540px;
}

.cm-lp-btn-light {
  background: #fff;
  color: #1b4fb3;
  border: 0;
  font-weight: 700;
}

.cm-lp-btn-light:hover {
  background: #f1f5ff;
  color: #163f92;
}

.cm-lp-btn-outline-light {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .45);
  font-weight: 600;
}

.cm-lp-btn-outline-light:hover {
  background: rgba(255, 255, 255, .26);
  color: #fff;
}

/* ---- Footer ---- */
.cm-lp-footer {
  border-top: 1px solid var(--cm-border);
  background: var(--cm-surface);
  padding-block: 1.85rem;
  margin-top: 2rem;
}

.cm-lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  align-items: center;
}

@media (max-width: 991.98px) {
  .cm-lp-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .cm-lp-hero {
    padding-block: 2.5rem 2rem;
  }
  .cm-lp-links {
    display: none;
  }
  .cm-lp-strip-grid {
    grid-template-columns: 1fr;
  }
  .cm-lp-mock-meta {
    grid-template-columns: 1fr;
  }
}

/* App section: copy on the left, three phones on the right */
.cm-lp-app { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: center; }
.cm-lp-app-points { list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; }
.cm-lp-app-points li { display: flex; align-items: center; gap: .85rem; margin: .9rem 0; font-size: 1.05rem; }
.cm-lp-app-points b {
  flex: none; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--cm-blue-bg); color: var(--cm-blue); font-size: .95rem;
}
.cm-lp-stage { position: relative; container-type: inline-size; aspect-ratio: 600 / 590; width: 100%; max-width: 640px; margin-inline: auto; }
.cm-lp-phone {
  position: absolute; width: 38cqw; border: 1.5cqw solid #12203f; border-radius: 6.5cqw; background: #12203f;
  overflow: hidden; box-shadow: 0 18px 40px rgba(20, 30, 70, .28); line-height: 0;
}
.cm-lp-phone img { width: 100%; height: auto; display: block; border-radius: 5cqw; }
.cm-lp-phone--left { left: 2%; top: 12%; transform: rotate(-8deg); }
.cm-lp-phone--right { right: 2%; top: 12%; transform: rotate(8deg); }
.cm-lp-phone--mid { left: 50%; top: 0; width: 47.5cqw; margin-left: -23.75cqw; z-index: 2; }
@media (max-width: 991.98px) {
  .cm-lp-app { grid-template-columns: 1fr; gap: 1.5rem; }
  .cm-lp-app-copy { text-align: center; }
  .cm-lp-app-points { display: inline-block; text-align: left; }
}

/* Testimonials */
.cm-lp-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.cm-lp-quote { margin: 0; padding: 1.25rem; border: 1px solid var(--cm-border); border-radius: 16px; background: var(--cm-surface); }
.cm-lp-quote blockquote { margin: 0 0 .9rem; line-height: 1.55; }
.cm-lp-quote blockquote::before { content: "\201C"; color: var(--cm-blue); font-size: 2rem; line-height: 0; vertical-align: -.35em; margin-right: .15em; }
.cm-lp-quote figcaption { display: flex; flex-direction: column; font-size: .9rem; }
.cm-lp-quote figcaption span { color: var(--cm-text-muted); }

/* Phone: the two header buttons stay on one line each, and the hero buttons stack at one even width. */
.cm-lp-nav .cm-btn, header .cm-btn-sm { white-space: nowrap; }
@media (max-width: 575.98px) {
  .cm-lp-cta-row { flex-direction: column; align-items: stretch; }
  .cm-lp-cta-row .cm-lp-cta-btn { width: 100%; justify-content: center; text-align: center; }
  .cm-lp-cta-row + .mt-3 { display: flex; justify-content: center; }
}

/* Phone: the closing banner's buttons share one width, and the footer links sit above the logo (centred). */
@media (max-width: 575.98px) {
  .cm-lp-banner-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cm-lp-banner-actions .cm-btn { width: 100%; justify-content: center; text-align: center; }
  .cm-lp-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .9rem; text-align: center; }
}

/* Narrow phones: the header's three controls must fit on one row, so the button icons go and the gaps shrink. */
@media (max-width: 420px) {
  .cm-lp-nav-inner { gap: .4rem; }
  .cm-lp-nav .cm-btn i { display: none; }
  .cm-lp-nav .cm-btn-sm { padding: .4rem .7rem; }
}
