/* Full-width web apps — OneGold / PAXG reference layout (no phone mockup) */

html.m2-root,
html.m3-root {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.app-stage {
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.app-stage--light {
  background: #f4f6f8;
}

.app-stage--dark,
.app-stage--paxg {
  background: #ffffff;
}

.app-device {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 100dvh;
  min-height: 100svh;
  position: relative;
  overflow: visible;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.app-device::before {
  display: none !important;
}

.app-status {
  display: none !important;
}

.app-device .m2-shell,
.app-device .m3-shell {
  flex: 1;
  min-height: 0;
  max-width: none;
  margin: 0;
  width: 100%;
}

/* OneGold-style web chrome — M2 */
.m2-web-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: #0c1a2e;
  color: #fff;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.m2-web-chrome a {
  color: inherit;
  text-decoration: none;
}

.m2-web-chrome-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
}

.m2-web-chrome-brand .m2-mark {
  width: 1.75rem;
  height: 1.75rem;
}

.m2-web-chrome-links {
  display: none;
  gap: 1.5rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.m2-web-chrome-links a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s;
}

.m2-web-chrome-links a:hover {
  color: #fff;
}

.m2-web-chrome-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: #c49a3c;
  color: #0c1a2e !important;
  font-size: 0.78rem;
  font-weight: 700;
}

/* PAXG-style web chrome — M3 */
.m3-web-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #e5e5e0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.m3-web-chrome a {
  color: inherit;
  text-decoration: none;
}

.m3-web-chrome-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
}

.m3-web-chrome-links {
  display: none;
  gap: 1.75rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.m3-web-chrome-links a {
  color: #4a4a4a;
}

.m3-web-chrome-links a:hover {
  color: #1a1a1a;
}

.m3-web-chrome-cta {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .m2-web-chrome-links,
  .m3-web-chrome-links {
    display: flex;
  }

  .app-stage {
    padding: 0;
  }

  .app-device {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto 1fr;
    max-width: 1200px;
    padding: 0 1rem 1.5rem;
    gap: 0 1.5rem;
  }

  .m2-web-chrome,
  .m3-web-chrome {
    grid-column: 1 / -1;
    border-radius: 0 0 12px 12px;
  }

  .app-device .model-glass-nav {
    position: static;
    transform: none;
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    max-width: none;
    width: 100%;
    height: fit-content;
    padding: 1rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #e5e5e0;
    border-top: 1px solid #e5e5e0;
    background: #fff;
    gap: 0.25rem;
  }

  .app-device .model-glass-nav--dark {
    background: #fff;
    border-color: #e5e5e0;
  }

  .app-device .model-nav-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.65rem;
    font-size: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    min-height: auto;
  }

  .app-device .model-nav-btn.active {
    background: #f7f7f5;
    color: #1a1a1a;
  }

  .app-device .model-nav-btn.active::after {
    display: none;
  }

  .app-device .m2-shell,
  .app-device .m3-shell {
    grid-column: 2;
    grid-row: 2;
    padding-bottom: 0;
  }

  /* Product marketing embeds — phone column at all widths */
  .product-wallet-inline .app-device {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    grid-template-rows: unset;
    max-width: min(100%, 420px);
    min-height: 0;
    padding: 0;
    gap: 0;
  }

  .product-wallet-inline .app-device .model-glass-nav {
    position: static;
    transform: none;
    grid-column: unset;
    grid-row: unset;
    flex-direction: row;
    order: 2;
  }

  .product-wallet-inline .app-device .m2-shell,
  .product-wallet-inline .app-device .m3-shell {
    grid-column: unset;
    grid-row: unset;
    order: 1;
    padding-bottom: 0;
  }
}

@media (display-mode: standalone) {
  .app-stage {
    padding: 0;
  }

  .app-device {
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .app-device .model-glass-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: row;
    max-width: none;
    border-radius: 0;
  }
}
