body[data-page="gateway"] {
  color-scheme: light;
  --beep-safe-top: env(safe-area-inset-top, 0px);
  --beep-safe-bottom: env(safe-area-inset-bottom, 0px);
  --beep-safe-left: env(safe-area-inset-left, 0px);
  --beep-safe-right: env(safe-area-inset-right, 0px);
  background: #f4f6f8;
  color: #111111;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.gateway-shell {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
  flex: 1;
  display: grid;
  gap: 12px;
  align-content: start;
}

@media (min-width: 761px) {
  .gateway-shell::before {
    content: "";
    position: absolute;
    inset: -140px auto auto 50%;
    width: 520px;
    height: 520px;
    transform: translateX(-50%);
    pointer-events: none;
    border-radius: 999px;
    filter: blur(50px);
    background: radial-gradient(circle, rgba(255, 199, 0, 0.18) 0%, rgba(255, 199, 0, 0.05) 56%, transparent 76%);
  }
}

.gateway-topbar {
  justify-content: center;
  min-height: 0;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(16, 20, 28, 0.1);
  box-shadow: 0 12px 26px rgba(18, 24, 34, 0.1);
}

.gateway-topbar .brand-logo {
  width: clamp(214px, 32vw, 360px);
  filter: drop-shadow(0 10px 22px rgba(17, 24, 39, 0.18));
}

.gateway-card {
  width: 100%;
  display: grid;
  gap: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 20, 28, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(18, 24, 34, 0.1);
}

.gateway-card.surface-body {
  padding: clamp(22px, 2.8vw, 34px);
}

.gateway-copy {
  display: grid;
  gap: 8px;
}

.gateway-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 1rem + 1.18vw, 2.02rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: #12151a;
}

.gateway-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.52;
  color: #4f5b69;
}

.gateway-actions {
  display: grid;
  gap: 11px;
  width: 100%;
}

.buyer-hint {
  margin: 0 auto 1px;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #394757;
}

.gateway-actions .btn {
  border: 0;
  border-radius: 12px;
  width: 100%;
  justify-content: center;
}

.buyer-cta {
  min-height: 66px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0b0b0b;
  background: linear-gradient(180deg, #ffe786 0%, #ffc700 74%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 16px 28px rgba(255, 199, 0, 0.25);
}

.buyer-cta:hover {
  color: #0b0b0b;
  background: linear-gradient(180deg, #fff0a4 0%, #ffd43f 72%);
}

.seller-cta {
  min-height: 52px;
  font-size: 0.94rem;
  font-weight: 640;
  color: #1d2938;
  background: #ffffff;
  border: 1px solid #dce3ea;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
}

.seller-cta:hover {
  color: #111111;
  background: #f7fafc;
}

.gateway-actions .btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.26);
}

.gateway-foot {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #667384;
}

@media (max-width: 760px) {
  body[data-page="gateway"][data-device-type="mobile"] {
    padding-top: max(10px, var(--beep-safe-top));
    padding-bottom: max(10px, var(--beep-safe-bottom));
    padding-left: max(8px, var(--beep-safe-left));
    padding-right: max(8px, var(--beep-safe-right));
    min-height: calc(var(--beep-vh, 1vh) * 100);
  }

  .gateway-shell {
    width: 100%;
    min-height: 0;
    gap: 10px;
  }

  .gateway-topbar.surface-body {
    padding: 14px 12px;
  }

  .gateway-topbar .brand-logo {
    width: clamp(174px, 48vw, 228px);
  }

  .gateway-card.surface-body {
    padding: 16px 14px;
  }

  .buyer-cta {
    min-height: 60px;
    font-size: 1rem;
  }

  .seller-cta {
    min-height: 50px;
  }

}

@media (max-width: 520px) {
  .gateway-topbar .brand-logo {
    width: clamp(164px, 46vw, 206px);
  }

  .gateway-title {
    font-size: 2rem;
  }
}
